1 line
7.2 KiB
Plaintext
1 line
7.2 KiB
Plaintext
{"version":3,"sources":["../../src/server/web-server.ts"],"names":["NextWebServer","BaseServer","constructor","options","Object","assign","renderOpts","webServerConfig","extendRenderOpts","getIncrementalCache","requestHeaders","dev","IncrementalCache","requestProtocol","appDir","hasAppDir","allowedRevalidateHeaderKeys","nextConfig","experimental","minimalMode","fetchCache","fetchCacheKeyPrefix","maxMemoryCacheSize","isrMemoryCacheSize","flushToDisk","CurCacheHandler","serverOptions","incrementalCacheHandler","getPrerenderManifest","getResponseCache","WebResponseCache","hasPage","page","getBuildId","buildId","getHasAppDir","pagesType","getPagesManifest","pathname","getAppPathsManifest","attachRequestMeta","req","parsedUrl","addRequestMeta","query","prerenderManifest","version","routes","dynamicRoutes","notFoundRoutes","preview","previewModeId","getNextFontManifest","nextFontManifest","handleCatchallRenderRequest","res","Error","normalizedPage","isDynamicRoute","routeRegex","getNamedRouteRegex","interpolateDynamicPath","normalizeVercelUrl","keys","routeKeys","removeTrailingSlash","i18nProvider","detectedLocale","analyze","__nextLocale","bubbleNoFallback","_nextBubbleNoFallback","isAPIRoute","render","finished","err","NoFallbackError","renderHTML","renderToHTML","disableOptimizedLoading","runtime","sendRenderResult","_req","setHeader","poweredByHeader","type","getHeader","result","contentType","isDynamic","writer","transformStream","writable","getWriter","innerClose","target","write","chunk","end","close","on","_event","cb","off","_cb","undefined","onClose","closed","then","pipe","payload","toUnchunkedString","String","byteLength","generateEtags","generateETag","body","send","findPageComponents","params","loadComponent","components","runApi","handleApiRequest","loadEnvConfig","getPublicDir","getHasStaticDir","getFallback","getFontManifest","handleCompression","handleUpgrade","getFallbackErrorComponents","getRoutesManifest","getMiddleware","getFilesystemPaths","Set","getPrefetchRsc"],"mappings":";;;;+BA2CA;;;eAAqBA;;;qBA5BM;oEACiB;sBACf;6BACE;6DACF;4BACF;qCACS;uBACL;6BAC4B;4BACxB;kCACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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