This template allows you to have NGINX proxy requests to your SvelteKit app,
while keeping Hot Module Replacement (HMR) and SSL functional with your development environment.
setup-server.sh
setup-ssl.sh
USE_POLLING/CHOKIDAR_USEPOLLING
true
- Windows development environment (fixes an issue with endless HMR reloads)false
- Mac/Linux development environmentDevelopment
mkcert
mkcert -install -key-file local.key.pem -cert-file local.cert.pem localhost foo.local
nginx/dev/local.cert.pem
& nginx/dev/local.key.pem
need to be createdProduction
example.com
with your domain name in:nginx/prod/default.conf
setup-ssl.sh
[email protected]
with your email address in setup-ssl.sh
chmod +x setup-server.sh setup-ssl.sh
sudo ./setup-server.sh
sudo ./setup-ssl.sh
docker compose up --build --force-recreate -d