Preparing the repository

This commit is contained in:
charles-gauthereau
2024-12-31 16:52:44 +01:00
parent 16b8ee06d1
commit 4db0dd6add
+6 -6
View File
@@ -7,11 +7,11 @@ export const env = createEnv({
* Will throw if you access these variables on the client. * Will throw if you access these variables on the client.
*/ */
server: { server: {
NODE_ENV: z.enum(['development', 'production']), NODE_ENV: z.enum(['development', 'production']).optional(),
DATABASE_URL: z.string().url(), DATABASE_URL: z.string().url().optional(),
NEXT_PUBLIC_SECRET: z.string(), NEXT_PUBLIC_SECRET: z.string().optional(),
NEXTAUTH_URL: z.string(), NEXTAUTH_URL: z.string().optional(),
NEXT_PUBLIC_DOMAIN_NAME: z.string(), NEXT_PUBLIC_DOMAIN_NAME: z.string().optional(),
SMTP_PASSWORD: z.string().optional(), SMTP_PASSWORD: z.string().optional(),
@@ -40,7 +40,7 @@ export const env = createEnv({
* 💡 You'll get type errors if these are not prefixed with NEXT_PUBLIC_. * 💡 You'll get type errors if these are not prefixed with NEXT_PUBLIC_.
*/ */
client: { client: {
NEXT_PUBLIC_DOMAIN_NAME: z.string(), NEXT_PUBLIC_DOMAIN_NAME: z.string().optional(),
NEXT_PUBLIC_GOOGLE_AUTH: z.string().optional(), NEXT_PUBLIC_GOOGLE_AUTH: z.string().optional(),
}, },
/* /*