-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(env): use Remix default and zod runtime validation (#347)
* Thomas/remove hardcoded env vars (#342) * refactor(env): getClientEnv for SSR and CSR * chore(dotenv): remove explicit dep for built in remix one * refactor(env): use zod to validate env vars * docs(app-builder): update README.md with env vars * docs(README): fix typo * refactor(chatlio): optionnal chatlio & segment from builder (#343) * refactor(chatlio): optionnal chatlio from builder * refactor(segment): optionnal segment from builder (#344) * chore(envs): let segment key
- Loading branch information
Showing
24 changed files
with
939 additions
and
890 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# This file is a template, and might need editing before it works on your project. | ||
# Duplicate this file as .env, and replace the values with your own. | ||
# The .env file should never be committed to git. | ||
# .env is only used in development, and ignored in production. | ||
# More information about environment variables can be found at: https://remix.run/docs/en/main/guides/envvars | ||
|
||
ENV=development | ||
NODE_ENV=development | ||
|
||
SESSION_SECRET=SESSION_SECRET | ||
SESSION_MAX_AGE=43200 | ||
|
||
MARBLE_API_DOMAIN=http://localhost:8080 | ||
MARBLE_APP_DOMAIN=http://localhost:3000 | ||
|
||
FIREBASE_AUTH_EMULATOR=true | ||
FIREBASE_AUTH_EMULATOR_HOST=http://localhost:9099 | ||
|
||
# if you make use of the auth emulator, you can enter dummy values | ||
FIREBASE_API_KEY=dummy | ||
FIREBASE_AUTH_DOMAIN=dummy | ||
FIREBASE_PROJECT_ID=dummy | ||
FIREBASE_STORAGE_BUCKET=dummy | ||
FIREBASE_MESSAGING_SENDER_ID=dummy | ||
FIREBASE_APP_ID=dummy | ||
|
||
|
||
# we use it for analytics | ||
SEGMENT_WRITE_KEY=hC8qrY2OLhUpl1Xycw523tbuClxlQR6u | ||
|
||
# we use it for error tracking | ||
# SENTRY_DSN= | ||
# SENTRY_ENVIRONMENT= | ||
|
||
# we use it for our support chat | ||
# CHATLIO_WIDGET_ID= |
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
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
packages/app-builder/src/repositories/AuthenticationRepository.ts
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
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
Oops, something went wrong.