Work on the dev env and building for production and staging.

This commit is contained in:
Scott Idem
2024-10-03 20:48:41 -04:00
parent 7b84e1c1fc
commit b6cd3f59e5
7 changed files with 116 additions and 2 deletions

View File

@@ -81,7 +81,29 @@ npm install flowbite flowbite-svelte tailwind-merge @popperjs/core
## Build
## Environment file
### ".env"
This is the default used if others are not found when when "npm run dev" or "npm run build" is run.
### ".env.local"
This is used when "npm run dev" is run. This is not used in the production build.
### ".env.production"
This is used when "npm run build" is run. This is not used in the development build.
### ".env:prod"
This is modified to allow for a staging environment and production environment built.
### ".env:staging"
This is modified to allow for a staging environment and production environment built.
### Example Important Values when running in dev:
Note our home IP address that changes.
```bash
DOCKER_AE_API_SERVER_EXTRA_HOST=dev-api.oneskyit.com:108.28.68.107
PUBLIC_AE_API_SERVER=api.oneskyit.com
PUBLIC_AE_API_BAK_SERVER=bak-api.oneskyit.com
```
# create-svelte