Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions website/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
Loading