make the app buildable for prod

This commit is contained in:
Viktor Barzin 2025-06-16 22:43:46 +00:00
parent 1e868f1b0d
commit b72569b6b9
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863
7 changed files with 78 additions and 16 deletions

View file

@ -0,0 +1,23 @@
server {
listen 80;
server_name _;
# Root directory for static files (must match Docker COPY path)
root /usr/share/nginx/html;
index index.html;
# Serve static files
location / {
try_files $uri $uri/ /index.html;
}
# Enable gzip compression
gzip on;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
# Cache static assets
# location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff2)$ {
# expires 1y;
# add_header Cache-Control "public, immutable";
# }
}