diff --git a/next.config.mjs b/next.config.mjs index 715ae63..29f964a 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -8,6 +8,12 @@ const nextConfig = { poweredByHeader: false, turbopack: {}, images: { + // The logo, the burger button and the social icons are SVGs. Without this + // flag next/image refuses to optimise them and answers 400, so every SVG + // in the site silently fails to load. Serving them from the optimiser needs + // a restrictive CSP on the image endpoint, because an SVG can carry script. + dangerouslyAllowSVG: true, + contentSecurityPolicy: "default-src 'self'; script-src 'none'; sandbox;", remotePatterns: [ { protocol: 'https',