diff --git a/client/.env.development b/client/.env.development index 10e385bd..e876d44f 100644 --- a/client/.env.development +++ b/client/.env.development @@ -1,4 +1,3 @@ -NEXT_PUBLIC_ENVIRONMENT=development NEXT_PUBLIC_URL=http://localhost:$PORT NEXT_PUBLIC_API_URL=http://0.0.0.0:1337/cms NEXT_PUBLIC_GA_TRACKING_ID=UA-000000-01 diff --git a/client/.github/workflows/e2e-client.yml b/client/.github/workflows/e2e-client.yml index 9b7c9e5c..336723c7 100644 --- a/client/.github/workflows/e2e-client.yml +++ b/client/.github/workflows/e2e-client.yml @@ -46,4 +46,7 @@ jobs: env: # Recommended: pass the GitHub token lets this action correctly # determine the unique run id necessary to re-run the checks + NEXT_PUBLIC_URL: http://localhost:$PORT + NEXT_PUBLIC_API_URL: http://localhost:1337/cms + NEXT_PUBLIC_MAPBOX_API_TOKEN: ${{ secrets.NEXT_PUBLIC_MAPBOX_API_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/client/src/env.mjs b/client/src/env.mjs index d2ac00ae..e6228224 100644 --- a/client/src/env.mjs +++ b/client/src/env.mjs @@ -24,7 +24,6 @@ export const env = createEnv({ * 💡 You'll get typeerrors if these are not prefixed with NEXT_PUBLIC_. */ client: { - NEXT_PUBLIC_ENVIRONMENT: z.enum(["development", "staging", "production"]), NEXT_PUBLIC_URL: z.string().url(), NEXT_PUBLIC_API_URL: z.string().url(), NEXT_PUBLIC_GA_TRACKING_ID: z.string().optional(), @@ -37,7 +36,6 @@ export const env = createEnv({ * 💡 You'll get typeerrors if not all variables from `server` & `client` are included here. */ runtimeEnv: { - NEXT_PUBLIC_ENVIRONMENT: process.env.NEXT_PUBLIC_ENVIRONMENT, NEXT_PUBLIC_URL: process.env.NEXT_PUBLIC_URL, NEXT_PUBLIC_API_URL: process.env.NEXT_PUBLIC_API_URL, NEXT_PUBLIC_GA_TRACKING_ID: process.env.NEXT_PUBLIC_GA_TRACKING_ID,