confirmed that next dev --turbo breaks auth

This commit is contained in:
Gabriel Brown 2024-07-19 18:17:41 -05:00
parent 279e0ad2d8
commit 8e02288d3d
2 changed files with 2318 additions and 2865 deletions

5176
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -12,10 +12,7 @@ export const env = createEnv({
.enum(["development", "test", "production"])
.default("development"),
API_KEY: z.string(),
AUTH_SECRET:
process.env.NODE_ENV === "production"
? z.string()
: z.string().optional(),
AUTH_SECRET: z.string(),
AUTH_MICROSOFT_ENTRA_ID_ID: z.string(),
AUTH_MICROSOFT_ENTRA_ID_SECRET: z.string(),
AUTH_MICROSOFT_ENTRA_ID_TENANT_ID: z.string(),
@ -38,7 +35,7 @@ export const env = createEnv({
DATABASE_URL: process.env.DATABASE_URL,
NODE_ENV: process.env.NODE_ENV,
API_KEY: process.env.API_KEY,
AUTH_SECRET: process.env.NEXTAUTH_SECRET,
AUTH_SECRET: process.env.AUTH_SECRET,
AUTH_MICROSOFT_ENTRA_ID_ID: process.env.AUTH_MICROSOFT_ENTRA_ID_ID,
AUTH_MICROSOFT_ENTRA_ID_SECRET: process.env.AUTH_MICROSOFT_ENTRA_ID_SECRET,
AUTH_MICROSOFT_ENTRA_ID_TENANT_ID: process.env.AUTH_MICROSOFT_ENTRA_ID_TENANT_ID,