auto-create admin role on startup, use API_BASE_URL for auth redirects

This commit is contained in:
2026-02-25 23:00:51 -06:00
parent 5852bd7819
commit 827b018f25
5 changed files with 44 additions and 5 deletions
+2
View File
@@ -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 });