diff --git a/website/nginx.conf b/website/nginx.conf index 227ab9c..f4db7c9 100644 --- a/website/nginx.conf +++ b/website/nginx.conf @@ -42,8 +42,10 @@ http { access_log off; } - # Public folder assets - location ~* ^/(favicon\.ico|robots\.txt|sitemap\.xml|.*\.(png|jpg|jpeg|gif|webp|svg|ico|woff2?|ttf|otf))$ { + # Public folder assets. robots.txt and sitemap.xml are not files: Next.js + # generates them from app/robots.ts and app/sitemap.ts, so they go to + # the proxy below. + location ~* ^/(favicon\.ico|.*\.(png|jpg|jpeg|gif|webp|svg|ico|woff2?|ttf|otf))$ { root /app/public; expires 7d; add_header Cache-Control "public";