@@ -31,14 +31,13 @@ export const env = createEnv({
3131 SOURCEBOT_ROOT_DOMAIN : z . string ( ) . default ( "localhost:3000" ) ,
3232 NODE_ENV : z . enum ( [ "development" , "test" , "production" ] ) ,
3333 SOURCEBOT_TELEMETRY_DISABLED : z . enum ( [ "true" , "false" ] ) . default ( "false" ) ,
34+ DATABASE_URL : z . string ( ) . url ( ) ,
3435 } ,
3536 // @NOTE : Make sure you destructure all client variables in the
3637 // `experimental__runtimeEnv` block below.
3738 client : {
3839 // PostHog
3940 NEXT_PUBLIC_POSTHOG_PAPIK : z . string ( ) . optional ( ) ,
40- NEXT_PUBLIC_POSTHOG_HOST : z . string ( ) . url ( ) . default ( 'https://us.i.posthog.com' ) ,
41- NEXT_PUBLIC_POSTHOG_ASSET_HOST : z . string ( ) . url ( ) . default ( 'https://us-assets.i.posthog.com' ) ,
4241 NEXT_PUBLIC_POSTHOG_UI_HOST : z . string ( ) . url ( ) . default ( 'https://us.posthog.com' ) ,
4342
4443 // Misc
@@ -48,8 +47,6 @@ export const env = createEnv({
4847 // For Next.js >= 13.4.4, you only need to destructure client variables:
4948 experimental__runtimeEnv : {
5049 NEXT_PUBLIC_POSTHOG_PAPIK : process . env . NEXT_PUBLIC_POSTHOG_PAPIK ,
51- NEXT_PUBLIC_POSTHOG_HOST : process . env . NEXT_PUBLIC_POSTHOG_HOST ,
52- NEXT_PUBLIC_POSTHOG_ASSET_HOST : process . env . NEXT_PUBLIC_POSTHOG_ASSET_HOST ,
5350 NEXT_PUBLIC_POSTHOG_UI_HOST : process . env . NEXT_PUBLIC_POSTHOG_UI_HOST ,
5451 NEXT_PUBLIC_SOURCEBOT_VERSION : process . env . NEXT_PUBLIC_SOURCEBOT_VERSION ,
5552 NEXT_PUBLIC_POLLING_INTERVAL_MS : process . env . NEXT_PUBLIC_POLLING_INTERVAL_MS ,
0 commit comments