Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
andresgnlez committed Sep 27, 2023
1 parent f752265 commit 2cde631
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion client/.env.development
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions client/.github/workflows/e2e-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 0 additions & 2 deletions client/src/env.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -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,
Expand Down

0 comments on commit 2cde631

Please sign in to comment.