[general] page404 = "./404.html" # Next exports /writing as writing.html, so serve it without forcing a trailing slash. redirect-trailing-slash = false # Serve /.well-known (PGP key, security.txt). ignore-hidden-files = false [advanced] [[advanced.headers]] source = "**" [advanced.headers.headers] Content-Security-Policy = "default-src 'self'; script-src 'self' 'unsafe-inline' https://utteranc.es https://analytics.andwati.com; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self'; connect-src 'self' https://analytics.andwati.com; frame-src https://www.youtube-nocookie.com https://utteranc.es; object-src 'none'; base-uri 'self'; form-action 'self'; frame-ancestors 'none'; upgrade-insecure-requests" X-Frame-Options = "DENY" X-Content-Type-Options = "nosniff" Referrer-Policy = "strict-origin-when-cross-origin" Permissions-Policy = "camera=(), microphone=(), geolocation=(), interest-cohort=()" Strict-Transport-Security = "max-age=63072000; includeSubDomains; preload" # Generated social images are exported without a file extension. [[advanced.headers]] source = "**/opengraph-image" [advanced.headers.headers] Content-Type = "image/png" # Hashed build assets never change. [[advanced.headers]] source = "/_next/static/**" [advanced.headers.headers] Cache-Control = "public, max-age=31536000, immutable"