next.js/test/production/standalone-mode/response-cache/app/next.config.js
next.config.js31 lines542 B
module.exports = {
  output: 'standalone',
  trailingSlash: true,
  rewrites() {
    return {
      beforeFiles: [
        {
          source: '/news/:path/',
          destination: '/news/:path*/',
        },
      ],
      afterFiles: [
        {
          source: '/somewhere',
          destination: '/',
        },
      ],
      fallback: [
        {
          source: '/:path*',
          destination: '/:path*',
        },
        {
          source: '/(.*)',
          destination: '/seo-redirects',
        },
      ],
    }
  },
}
Quest for Codev2.0.0
/
SIGN IN