Reproduction repository for undefined environment variables in production build of SvelteKit when providing through Docker.
- Start up the application in development mode:
docker-compose -f docker-compose.dev.yml up --build -d
- Visit
http://localhost
and verify that the value of the specified environment variable is available. - Terminate the application:
docker-compose -f docker-compose.dev.yml down
- Start up the application in production mode:
docker-compose up --build -d
- Visit
http://localhost
to find the undefined value of the environment variable. - To terminate the application in production mode:
docker-compose down