diff --git a/nginx.conf b/nginx.conf index eb1f868..bb0b68c 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,3 +1,12 @@ -location / { - try_files $uri /index.html; +server { + listen 80; + server_name localhost; + + root /usr/share/nginx/html; # Cela dépend de l'endroit où tu as déployé ton application Svelte + + location / { + try_files $uri /index.html; # Cette ligne permet de gérer les URL avec le routage côté client + } + + # Autres directives de configuration (log, erreurs, etc.) }