next.js/test/integration/telemetry/next.config.use-cache
next.config.use-cache16 lines448 B
module.exports = {
  cacheComponents: true,
  cacheHandlers: {
    custom: require.resolve('next/dist/server/lib/cache-handlers/default.external'),
  },
  webpack(config) {
    if (process.env.NEXT_RSPACK) {
      // Disable persistent cache.
      // If enabled, test case modules will not be recompiled by loaders,
      // which prevents the Telemetry plugin from collecting information.
      config.cache = false
    }
    return config
  }
}
Quest for Codev2.0.0
/
SIGN IN