diff --git a/default.conf b/default.conf index c980570..4351d98 100644 --- a/default.conf +++ b/default.conf @@ -4,15 +4,6 @@ server { root /usr/share/nginx/html; index index.html; - location = / { - return 301 /homepage; - } - - location /_next/static/ { - expires 365d; - add_header Cache-Control "public, immutable"; - } - location /assets/ { expires 30d; add_header Cache-Control "public"; @@ -30,9 +21,8 @@ server { } location / { - try_files $uri $uri.html $uri/index.html =404; + try_files $uri $uri/ /index.html; } - error_page 404 /404.html; + error_page 404 /index.html; } -