-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor
isEnv
checks; introduce NEXT_PUBLIC_APP_ENV
- Loading branch information
Showing
13 changed files
with
29 additions
and
15 deletions.
There are no files selected for viewing
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,2 +1,4 @@ | ||
# See `./docker-compose.yml` | ||
DATABASE_URL=postgresql://postgres:password@localhost:6002/postgres | ||
|
||
NEXT_PUBLIC_APP_ENV='development' # 'staging', 'production' |
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
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
2 changes: 1 addition & 1 deletion
2
src/core/layouts/TailwindResponsiveHelper/TailwindResponsiveHelper.tsx
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,14 +1,10 @@ | ||
export const isProduction = | ||
process.env.NODE_ENV === "production" && | ||
process.env.NEXT_PUBLIC_APP_ORIGIN === "http://trassenscout.de" | ||
export const isProduction = process.env.NEXT_PUBLIC_APP_ENV === "production" | ||
|
||
// This does not handle tinkering.trassenscout, yet | ||
// export const isStaging = | ||
// process.env.NODE_ENV === "production" && | ||
// process.env.NEXT_PUBLIC_APP_ORIGIN === "http://staging.trassenscout.de" | ||
export const isStaging = process.env.NEXT_PUBLIC_APP_ENV === "staging" | ||
|
||
export const isDev = | ||
process.env.NEXT_PUBLIC_APP_ENV === "development" && process.env.NODE_ENV === "development" | ||
|
||
export const isDev = process.env.NODE_ENV === "development" | ||
export const isTest = process.env.NODE_ENV === "test" | ||
|
||
export const isBrowser = typeof window !== "undefined" | ||
export const isSSR = !isBrowser |
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