Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev: move configuration to a
.env
file (#3430)
Putting the dev config in a git-ignored files improves DX and lower the risk of a private dev key being committed by mistake.
- Loading branch information
Showing
4 changed files
with
46 additions
and
23 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 |
---|---|---|
|
@@ -14,6 +14,7 @@ node_modules | |
yarn-error.log | ||
|
||
env.sh | ||
*.local | ||
|
||
dist/ | ||
lib/ | ||
|
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,24 @@ | ||
VITE_UPLOADER=tus | ||
|
||
#### To customize this, create a .env.local file that overrides those values | ||
|
||
# VITE_UPLOADER=tus | ||
# VITE_UPLOADER=s3 | ||
# VITE_UPLOADER=s3-multipart | ||
# xhr will use protocol 'multipart' in companion, if used with a remote service, e.g. google drive. | ||
# If local upload will use browser XHR | ||
# VITE_UPLOADER=xhr | ||
# VITE_UPLOADER=transloadit | ||
# VITE_UPLOADER=transloadit-s3 | ||
# VITE_UPLOADER=transloadit-xhr | ||
|
||
### DEV CONFIG: Endpoint URLs | ||
|
||
VITE_COMPANION_URL=http://localhost:3020 | ||
VITE_TUS_ENDPOINT=https://tusd.tusdemo.net/files/ | ||
VITE_XHR_ENDPOINT=https://xhr-server.herokuapp.com/upload | ||
|
||
### DEV CONFIG: Transloadit keys | ||
VITE_TRANSLOADIT_KEY=... | ||
VITE_TRANSLOADIT_TEMPLATE=... | ||
VITE_TRANSLOADIT_SERVICE_URL=https://api2.transloadit.com |
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