@@ -7,21 +7,25 @@ export const env = createEnv({
7
7
* isn't built with invalid env vars.
8
8
*/
9
9
server : {
10
- DATABASE_URL : z . string ( ) . url ( ) ,
10
+ DATABASE_URL : z . string ( ) ,
11
11
NODE_ENV : z
12
12
. enum ( [ "development" , "test" , "production" ] )
13
13
. default ( "development" ) ,
14
14
NEXTAUTH_SECRET :
15
15
process . env . NODE_ENV === "production"
16
16
? z . string ( )
17
17
: z . string ( ) . optional ( ) ,
18
- NEXTAUTH_URL : z . preprocess (
19
- // This makes Vercel deployments not fail if you don't set NEXTAUTH_URL
20
- // Since NextAuth.js automatically uses the VERCEL_URL if present.
21
- ( str ) => process . env . VERCEL_URL ?? str ,
22
- // VERCEL_URL doesn't include `https` so it cant be validated as a URL
23
- process . env . VERCEL ? z . string ( ) : z . string ( ) . url ( ) ,
24
- ) ,
18
+ NEXTAUTH_URL : z . string ( ) . url ( ) ,
19
+ //
20
+ // We are no longer deploying to Vercel. Drift is Vercel v2.0 ;)
21
+ //
22
+ // NEXTAUTH_URL: z.preprocess(
23
+ // // This makes Vercel deployments not fail if you don't set NEXTAUTH_URL
24
+ // // Since NextAuth.js automatically uses the VERCEL_URL if present.
25
+ // (str) => process.env.VERCEL_URL ?? str,
26
+ // // VERCEL_URL doesn't include `https` so it cant be validated as a URL
27
+ // process.env.VERCEL ? z.string() : z.string().url(),
28
+ // ),
25
29
ALLOWED_GROUP_SLUGS : z
26
30
. string ( )
27
31
. refine ( ( i ) => i . split ( "," ) . length > 0 , {
0 commit comments