auto-create admin role on startup, use API_BASE_URL for auth redirects
This commit is contained in:
@@ -17,6 +17,8 @@ interface EnvKey {
|
||||
// ENV CONSTANTS
|
||||
|
||||
export const PORT = process.env.PORT;
|
||||
export const API_BASE_URL =
|
||||
process.env.API_BASE_URL || `http://localhost:${PORT || 3000}`;
|
||||
|
||||
export const prisma = new PrismaClient({ adapter });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user