-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3203 from serlo/3199-simplify-env-system
simplify env vars and better debug output
- Loading branch information
Showing
9 changed files
with
34 additions
and
92 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,3 @@ | ||
# Uncomment the next line to test a local API / Auth | ||
#NEXT_PUBLIC_ENV=local | ||
NEXT_PUBLIC_ENV=staging | ||
NEXT_PUBLIC_SERLO_DOMAIN_PRODUCTION=serlo.org | ||
NEXT_PUBLIC_SERLO_DOMAIN_STAGING=serlo-staging.dev | ||
NEXT_PUBLIC_SERLO_DOMAIN_LOCAL=serlo.localhost:4567 | ||
# empty string if not on vercel | ||
NEXT_PUBLIC_VERCEL_URL= | ||
# empty string if not on vercel | ||
NEXT_PUBLIC_COMMIT_SHA= | ||
HYDRA_CLIENT_ID_STAGING=frontend | ||
HYDRA_CLIENT_SECRET_STAGING=YjgwZThhZDk0MTYxMTA4ODY1NzYxZmJk | ||
HYDRA_HOST_STAGING=https://hydra.${NEXT_PUBLIC_SERLO_DOMAIN_STAGING} | ||
HYDRA_CLIENT_ID_LOCAL=frontend.serlo.org | ||
HYDRA_CLIENT_SECRET_LOCAL=frontend.serlo.org | ||
HYDRA_HOST_LOCAL=http://localhost:4444 | ||
KRATOS_HOST_STAGING=https://kratos.${NEXT_PUBLIC_SERLO_DOMAIN_STAGING} | ||
KRATOS_HOST_LOCAL=http://localhost:4433 | ||
NEXT_PUBLIC_ENV=staging |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export const serloDomain = | ||
process.env.NEXT_PUBLIC_ENV === 'production' | ||
? process.env.NEXT_PUBLIC_SERLO_DOMAIN_PRODUCTION | ||
: process.env.NEXT_PUBLIC_SERLO_DOMAIN_STAGING | ||
? 'serlo.org' | ||
: 'serlo-staging.dev' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters