/opt/canhelp/node_modules/next/dist/esm/server/request
NameSizeModeActions
connection.js69970644editdlrm
connection.js.map84930644editdlrm
cookies.js201800644editdlrm
cookies.js.map315520644editdlrm
draft-mode.js134720644editdlrm
draft-mode.js.map210970644editdlrm
fallback-params.js10800644editdlrm
fallback-params.js.map21340644editdlrm
headers.js179150644editdlrm
headers.js.map269180644editdlrm
params.js255420644editdlrm
params.js.map391840644editdlrm
pathname.js40080644editdlrm
pathname.js.map62060644editdlrm
root-params.js136890644editdlrm
root-params.js.map185160644editdlrm
search-params.js311100644editdlrm
search-params.js.map469870644editdlrm
utils.js21240644editdlrm
utils.js.map31130644editdlrm
Edit: /opt/canhelp/node_modules/next/dist/esm/server/request/utils.js (2124B)
import { StaticGenBailoutError } from '../../client/components/static-generation-bailout'; import { afterTaskAsyncStorage } from '../app-render/after-task-async-storage.external'; export function throwWithStaticGenerationBailoutError(route, expression) { throw Object.defineProperty(new StaticGenBailoutError(`Route ${route} couldn't be rendered statically because it used ${expression}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", { value: "E576", enumerable: false, configurable: true }); } export function throwWithStaticGenerationBailoutErrorWithDynamicError(route, expression) { throw Object.defineProperty(new StaticGenBailoutError(`Route ${route} with \`dynamic = "error"\` couldn't be rendered statically because it used ${expression}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", { value: "E543", enumerable: false, configurable: true }); } export function throwForSearchParamsAccessInUseCache(workStore, constructorOpt) { const error = Object.defineProperty(new Error(`Route ${workStore.route} used "searchParams" inside "use cache". Accessing dynamic request data inside a cache scope is not supported. If you need some search params inside a cached function await "searchParams" outside of the cached function and pass only the required search params as arguments to the cached function. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`), "__NEXT_ERROR_CODE", { value: "E779", enumerable: false, configurable: true }); Error.captureStackTrace(error, constructorOpt); workStore.invalidDynamicUsageError ??= error; throw error; } export function isRequestAPICallableInsideAfter() { const afterTaskStore = afterTaskAsyncStorage.getStore(); return (afterTaskStore == null ? void 0 : afterTaskStore.rootTaskSpawnPhase) === 'action'; } //# sourceMappingURL=utils.js.map