Skip to content

bartosjiri/sveltekit-prod-env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SvelteKit production environment variables

Reproduction repository for undefined environment variables in production build of SvelteKit when providing through Docker.

Requirements

Usage

  1. Start up the application in development mode:
    docker-compose -f docker-compose.dev.yml up --build -d
    
  2. Visit http://localhost and verify that the value of the specified environment variable is available.
  3. Terminate the application:
    docker-compose -f docker-compose.dev.yml down
    
  4. Start up the application in production mode:
    docker-compose up --build -d
    
  5. Visit http://localhost to find the undefined value of the environment variable.
  6. To terminate the application in production mode:
    docker-compose down
    

References