Rocky_Mountain_Vending/.pnpm-store/v10/files/22/05728eb705142e79f6aadd61652926c432c6a61dd5368e3357db9279d9e5a4a930ec6c844ea5b294ee2c6be570ec9b6bd169a6188f0014b2e4dcd4e9f5ca84
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

1 line
No EOL
3.1 KiB
Text

{"version":3,"sources":["../../../../src/build/webpack/loaders/next-edge-function-loader.ts"],"sourcesContent":["import type webpack from 'webpack'\nimport { getModuleBuildInfo } from './get-module-build-info'\nimport { stringifyRequest } from '../stringify-request'\nimport type { ProxyConfig } from '../../analysis/get-page-static-info'\n\nexport type EdgeFunctionLoaderOptions = {\n absolutePagePath: string\n page: string\n rootDir: string\n preferredRegion: string | string[] | undefined\n middlewareConfig: string\n}\n\nconst nextEdgeFunctionLoader: webpack.LoaderDefinitionFunction<EdgeFunctionLoaderOptions> =\n function nextEdgeFunctionLoader(this) {\n const {\n absolutePagePath,\n page,\n rootDir,\n preferredRegion,\n middlewareConfig: middlewareConfigBase64,\n }: EdgeFunctionLoaderOptions = this.getOptions()\n const stringifiedPagePath = stringifyRequest(this, absolutePagePath)\n const buildInfo = getModuleBuildInfo(this._module as any)\n const middlewareConfig: ProxyConfig = JSON.parse(\n Buffer.from(middlewareConfigBase64, 'base64').toString()\n )\n buildInfo.route = {\n page: page || '/',\n absolutePagePath,\n preferredRegion,\n middlewareConfig,\n }\n buildInfo.nextEdgeApiFunction = {\n page: page || '/',\n }\n buildInfo.rootDir = rootDir\n\n return `\n import 'next/dist/esm/server/web/globals'\n import { adapter } from 'next/dist/esm/server/web/adapter'\n import { IncrementalCache } from 'next/dist/esm/server/lib/incremental-cache'\n import { wrapApiHandler } from 'next/dist/esm/server/api-utils'\n\n import handler from ${stringifiedPagePath}\n\n if (typeof handler !== 'function') {\n throw new Error('The Edge Function \"pages${page}\" must export a \\`default\\` function');\n }\n\n export default function nHandler (opts) {\n return adapter({\n ...opts,\n IncrementalCache,\n page: ${JSON.stringify(page)},\n handler: wrapApiHandler(${JSON.stringify(page)}, handler),\n })\n }\n `\n }\n\nexport default nextEdgeFunctionLoader\n"],"names":["nextEdgeFunctionLoader","absolutePagePath","page","rootDir","preferredRegion","middlewareConfig","middlewareConfigBase64","getOptions","stringifiedPagePath","stringifyRequest","buildInfo","getModuleBuildInfo","_module","JSON","parse","Buffer","from","toString","route","nextEdgeApiFunction","stringify"],"mappings":";;;;+BA6DA;;;eAAA;;;oCA5DmC;kCACF;AAWjC,MAAMA,yBACJ,SAASA;IACP,MAAM,EACJC,gBAAgB,EAChBC,IAAI,EACJC,OAAO,EACPC,eAAe,EACfC,kBAAkBC,sBAAsB,EACzC,GAA8B,IAAI,CAACC,UAAU;IAC9C,MAAMC,sBAAsBC,IAAAA,kCAAgB,EAAC,IAAI,EAAER;IACnD,MAAMS,YAAYC,IAAAA,sCAAkB,EAAC,IAAI,CAACC,OAAO;IACjD,MAAMP,mBAAgCQ,KAAKC,KAAK,CAC9CC,OAAOC,IAAI,CAACV,wBAAwB,UAAUW,QAAQ;IAExDP,UAAUQ,KAAK,GAAG;QAChBhB,MAAMA,QAAQ;QACdD;QACAG;QACAC;IACF;IACAK,UAAUS,mBAAmB,GAAG;QAC9BjB,MAAMA,QAAQ;IAChB;IACAQ,UAAUP,OAAO,GAAGA;IAEpB,OAAO,CAAC;;;;;;4BAMgB,EAAEK,oBAAoB;;;mDAGC,EAAEN,KAAK;;;;;;;oBAOtC,EAAEW,KAAKO,SAAS,CAAClB,MAAM;sCACL,EAAEW,KAAKO,SAAS,CAAClB,MAAM;;;IAGzD,CAAC;AACH;MAEF,WAAeF","ignoreList":[0]}