/opt/canhelp/node_modules/next/dist/esm/export/helpers
NameSizeModeActions
create-incremental-cache.js20080644editdlrm
create-incremental-cache.js.map41380644editdlrm
get-amp-html-validator.js18540644editdlrm
get-amp-html-validator.js.map25630644editdlrm
get-params.js13300644editdlrm
get-params.js.map19590644editdlrm
is-dynamic-usage-error.js5300644editdlrm
is-dynamic-usage-error.js.map9780644editdlrm
Edit: /opt/canhelp/node_modules/next/dist/esm/export/helpers/create-incremental-cache.js (2008B)
import path from 'path'; import { IncrementalCache } from '../../server/lib/incremental-cache'; import { hasNextSupport } from '../../server/ci-info'; import { nodeFs } from '../../server/lib/node-fs-methods'; import { interopDefault } from '../../lib/interop-default'; import { formatDynamicImportPath } from '../../lib/format-dynamic-import-path'; import { initializeCacheHandlers, setCacheHandler } from '../../server/use-cache/handlers'; export async function createIncrementalCache({ cacheHandler, cacheMaxMemorySize, fetchCacheKeyPrefix, distDir, dir, flushToDisk, cacheHandlers, requestHeaders }) { // Custom cache handler overrides. let CacheHandler; if (cacheHandler) { CacheHandler = interopDefault(await import(formatDynamicImportPath(dir, cacheHandler)).then((mod)=>mod.default || mod)); } if (cacheHandlers && initializeCacheHandlers()) { for (const [kind, handler] of Object.entries(cacheHandlers)){ if (!handler) continue; setCacheHandler(kind, interopDefault(await import(formatDynamicImportPath(dir, handler)).then((mod)=>mod.default || mod))); } } const incrementalCache = new IncrementalCache({ dev: false, requestHeaders: requestHeaders || {}, flushToDisk, maxMemoryCacheSize: cacheMaxMemorySize, fetchCacheKeyPrefix, getPrerenderManifest: ()=>({ version: 4, routes: {}, dynamicRoutes: {}, preview: { previewModeEncryptionKey: '', previewModeId: '', previewModeSigningKey: '' }, notFoundRoutes: [] }), fs: nodeFs, serverDistDir: path.join(distDir, 'server'), CurCacheHandler: CacheHandler, minimalMode: hasNextSupport }); globalThis.__incrementalCache = incrementalCache; return incrementalCache; } //# sourceMappingURL=create-incremental-cache.js.map