Rocky_Mountain_Vending/.pnpm-store/v10/files/0a/414b4bb71d58c635e51c696e87591c643a914112f5ab588dbe2a5185505708ce99574d73fd47b27e8c10f982a44eb5f63bc4394f5680bab373f39df0552c31
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

27 lines
No EOL
1,007 B
Text

import { stringifyRequest } from '../stringify-request';
// this parameter: https://www.typescriptlang.org/docs/handbook/functions.html#this-parameters
function nextClientPagesLoader() {
const pagesLoaderSpan = this.currentTraceSpan.traceChild('next-client-pages-loader');
return pagesLoaderSpan.traceFn(()=>{
const { absolutePagePath, page } = this.getOptions();
pagesLoaderSpan.setAttribute('absolutePagePath', absolutePagePath);
const stringifiedPageRequest = stringifyRequest(this, absolutePagePath);
const stringifiedPage = JSON.stringify(page);
return `
(window.__NEXT_P = window.__NEXT_P || []).push([
${stringifiedPage},
function () {
return require(${stringifiedPageRequest});
}
]);
if(module.hot) {
module.hot.dispose(function () {
window.__NEXT_P.push([${stringifiedPage}])
});
}
`;
});
}
export default nextClientPagesLoader;
//# sourceMappingURL=next-client-pages-loader.js.map