Rocky_Mountain_Vending/.pnpm-store/v10/files/81/84e3716fded4ce75bd3c3fffb724946b9b351f13bb7b21d04b2910639184e7199338289a14451403da111aeb244d957501b333b96531f9999029eba7992e23
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

32 lines
No EOL
1.4 KiB
Text

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "anySegmentHasRuntimePrefetchEnabled", {
enumerable: true,
get: function() {
return anySegmentHasRuntimePrefetchEnabled;
}
});
const _appdirmodule = require("../lib/app-dir-module");
const _parseloadertree = require("../../shared/lib/router/utils/parse-loader-tree");
async function anySegmentHasRuntimePrefetchEnabled(tree) {
const { mod: layoutOrPageMod } = await (0, _appdirmodule.getLayoutOrPageModule)(tree);
// TODO(restart-on-cache-miss): Does this work correctly for client page/layout modules?
const prefetchConfig = layoutOrPageMod ? layoutOrPageMod.unstable_prefetch : undefined;
/** Whether this segment should use a runtime prefetch instead of a static prefetch. */ const hasRuntimePrefetch = (prefetchConfig == null ? void 0 : prefetchConfig.mode) === 'runtime';
if (hasRuntimePrefetch) {
return true;
}
const { parallelRoutes } = (0, _parseloadertree.parseLoaderTree)(tree);
for(const parallelRouteKey in parallelRoutes){
const parallelRoute = parallelRoutes[parallelRouteKey];
const hasChildRuntimePrefetch = await anySegmentHasRuntimePrefetchEnabled(parallelRoute);
if (hasChildRuntimePrefetch) {
return true;
}
}
return false;
}
//# sourceMappingURL=staged-validation.js.map