static export + nginx, drop runtime server
Some checks failed
Build and Deploy Gabriel Kaszewski Portfolio / build-and-deploy-local (push) Failing after 7s

~800MiB -> ~5MiB RAM
This commit is contained in:
2026-08-08 15:51:24 +02:00
parent 0f207f4cdd
commit 369cd75bfe
4 changed files with 37 additions and 25 deletions

21
nginx.conf Normal file
View File

@@ -0,0 +1,21 @@
server {
listen 80;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri.html $uri/ =404;
}
location /_next/static/ {
expires 1y;
add_header Cache-Control "public, immutable";
}
location /images/ {
expires 30d;
add_header Cache-Control "public";
}
error_page 404 /404.html;
}