next.js/test/e2e/app-dir/use-cache/next.config.js
next.config.js30 lines563 B
/**
 * @type {import('next').NextConfig}
 */
const nextConfig = {
  cacheHandlers: {
    custom: require.resolve(
      'next/dist/server/lib/cache-handlers/default.external'
    ),
    'no-store': require.resolve('./no-store-handler.js'),
  },
  experimental: {
    useCache: true,
  },
  cacheLife: {
    frequent: {
      stale: 19,
      revalidate: 100,
      expire: 300,
    },
    expireNow: {
      stale: 0,
      expire: 0,
      revalidate: 0,
    },
  },
  cacheHandler: require.resolve('./incremental-cache-handler'),
}

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