File size: 774 Bytes
d092f57
 
 
 
 
 
1c25f54
d092f57
1c25f54
 
 
 
 
 
 
 
 
 
d092f57
 
 
 
 
 
 
1c25f54
 
 
d092f57
 
 
 
 
 
1c25f54
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// @ts-check

/**
 * @type {import("next").NextConfig}
 **/
const nextConfig = {
  output: "standalone",
  images: {
    // Disable Next.js image optimization to avoid needing `sharp` in production
    unoptimized: true,

    // Replace deprecated `images.domains` with `remotePatterns`
    remotePatterns: [
      {
        protocol: "https",
        hostname: "api.dicebear.com",
      },
    ],
  },
  async headers() {
    return [
      {
        // apply headers to all routes
        source: "/:path*",
        headers: [
          { key: "X-DNS-Prefetch-Control", value: "on" },
          { key: "X-XSS-Protection", value: "1; mode=block" },
          { key: "X-Content-Type-Options", value: "nosniff" },
        ],
      },
    ]
  },
}

module.exports = nextConfig