next.js/test/production/app-dir/build-output-debug/next.config.js
next.config.js34 lines527 B
/** @type {import('next').NextConfig} */
module.exports = {
  async redirects() {
    return [
      {
        source: '/redirects',
        destination: '/',
        permanent: true,
      },
    ]
  },
  async rewrites() {
    return [
      {
        source: '/rewrites',
        destination: '/',
      },
    ]
  },
  async headers() {
    return [
      {
        source: '/',
        headers: [
          {
            key: 'x-custom-headers',
            value: 'headers',
          },
        ],
      },
    ]
  },
}
Quest for Codev2.0.0
/
SIGN IN