next.js/test/e2e/app-dir/segment-cache/max-prefetch-inlining/next.config.js
next.config.js20 lines520 B
/**
 * Setting both thresholds to Infinity inlines all segments into a single
 * response per route, approximating pre-Segment Cache (pre-Next 16)
 * prefetching behavior where all data was bundled into one response. The
 * tradeoff is that per-layout deduplication across routes is lost.
 *
 * @type {import('next').NextConfig}
 */
const nextConfig = {
  cacheComponents: true,
  experimental: {
    prefetchInlining: {
      maxSize: Infinity,
      maxBundleSize: Infinity,
    },
  },
}

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