text: module.exports = {
    // https://nextjs.org/docs/messages/webpack5
    future: {
      webpack5: true,
    },
  
    // https://nextjs.org/docs/api-reference/next.config.js/headers
    async headers() {
      return [
        {
          // https://vercel.com/support/articles/how-to-enable-cors#enabling-cors-in-a-next.js-app
          source: "/api/:path*",
          headers: [
            {
              key: "Access-Control-Allow-Credentials",
              value: "true",
            },
            {
              key: "Access-Control-Allow-Origin",
              value: "*",
            },
            {
              key: "Access-Control-Allow-Methods",
              value: "GET,OPTIONS,PATCH,DELETE,POST,PUT",
            },
            {
              key: "Access-Control-Allow-Headers",
              value:
                "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version",
            },
          ],
        },
        {
          source: "/:path*",
          headers: [
            {
              key: "Cache-Control",
              value: "public, s-maxage=1, stale-while-revalidate=59",
            },
          ],
        },
      ];
    },
  
    // https://nextjs.org/docs/basic-features/image-optimization#domains
    images: {
      domains: [
        //
      ],
    },
  
    // https://nextjs.org/docs/api-reference/next.config.js/react-strict-mode
    reactStrictMode: true,
  
    // https://nextjs.org/docs/api-reference/next.config.js/redirects
    async redirects() {
      return [
        //
      ];
    },
  };
  