diff --git a/apps/web/Dockerfile b/apps/web/Dockerfile index 808193942e9..576beec856c 100644 --- a/apps/web/Dockerfile +++ b/apps/web/Dockerfile @@ -24,7 +24,7 @@ ENV NEXT_PUBLIC_APP_VERSION=$APP_VERSION ARG SELF_HOSTED ENV NEXT_PUBLIC_SELF_HOSTED=$SELF_HOSTED -RUN yarn build +RUN SKIP_ENV_VALIDATION=1 yarn build FROM node:20 AS runner diff --git a/apps/web/src/env.ts b/apps/web/src/env.ts index efe36187d39..81087bf8f6b 100644 --- a/apps/web/src/env.ts +++ b/apps/web/src/env.ts @@ -89,4 +89,5 @@ export const env = createEnv({ NEXT_PUBLIC_POSTHOG_API_KEY: process.env.NEXT_PUBLIC_POSTHOG_API_KEY, NEXT_PUBLIC_POSTHOG_API_HOST: process.env.NEXT_PUBLIC_POSTHOG_API_HOST, }, + skipValidation: !!process.env.SKIP_ENV_VALIDATION, }); diff --git a/turbo.json b/turbo.json index 42005ec8b62..552c6f0f7fe 100644 --- a/turbo.json +++ b/turbo.json @@ -94,6 +94,7 @@ "SENTRY_AUTH_TOKEN", "SENTRY_DSN", "SENTRY_IGNORE_API_RESOLUTION_ERROR", + "SKIP_ENV_VALIDATION", "SMTP_HOST", "SMTP_PORT", "SMTP_PWD",