next.js/test/e2e/app-dir/sub-shell-generation-middleware/next.config.js
next.config.js33 lines603 B
/**
 * @type {import('next').NextConfig}
 */
const nextConfig = {
  experimental: {
    prefetchInlining: false,
    useCache: true,
  },
  rewrites: async () => {
    return {
      beforeFiles: [
        {
          source: '/:first/~/overview/:path*',
          destination: '/404',
        },
        {
          source: '/:first',
          has: [
            {
              type: 'cookie',
              key: 'overview-param',
              value: 'grid',
            },
          ],
          destination: '/:first/~/overview/grid',
        },
      ],
    }
  },
}

module.exports = nextConfig
Quest for Codev2.0.0
/
SIGN IN