Rocky_Mountain_Vending/.pnpm-store/v10/files/2a/08835731551e0fc2ea1f0a21be91458ffc6439d4ac9684e4ac6409845358d40ea17a3a676598a2f7b1abea6497839494b7d1ad6a2cb1891fdb2ddf49a08b39
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

91 lines
No EOL
4.7 KiB
Text

/**
* Entry point to the Segment Cache implementation.
*
* All code related to the Segment Cache lives `segment-cache-impl` directory.
* Callers access it through this indirection.
*
* This is to ensure the code is dead code eliminated from the bundle if the
* flag is disabled.
*
* TODO: This is super tedious. Since experimental flags are an essential part
* of our workflow, we should establish a better pattern for dead code
* elimination. Ideally it would be done at the bundler level, like how React's
* build process works. In the React repo, you don't even need to add any extra
* configuration per experiment — if the code is not reachable, it gets stripped
* from the build automatically by Rollup. Or, shorter term, we could stub out
* experimental modules at build time by updating the build config, i.e. a more
* automated version of what I'm doing manually in this file.
*/ const notEnabled = ()=>{
throw Object.defineProperty(new Error('Segment Cache experiment is not enabled. This is a bug in Next.js.'), "__NEXT_ERROR_CODE", {
value: "E654",
enumerable: false,
configurable: true
});
};
export const prefetch = process.env.__NEXT_CLIENT_SEGMENT_CACHE ? function(...args) {
return require('./segment-cache-impl/prefetch').prefetch(...args);
} : notEnabled;
export const navigate = process.env.__NEXT_CLIENT_SEGMENT_CACHE ? function(...args) {
return require('./segment-cache-impl/navigation').navigate(...args);
} : notEnabled;
export const revalidateEntireCache = process.env.__NEXT_CLIENT_SEGMENT_CACHE ? function(...args) {
return require('./segment-cache-impl/cache').revalidateEntireCache(...args);
} : notEnabled;
export const getCurrentCacheVersion = process.env.__NEXT_CLIENT_SEGMENT_CACHE ? function(...args) {
return require('./segment-cache-impl/cache').getCurrentCacheVersion(...args);
} : notEnabled;
export const schedulePrefetchTask = process.env.__NEXT_CLIENT_SEGMENT_CACHE ? function(...args) {
return require('./segment-cache-impl/scheduler').schedulePrefetchTask(...args);
} : notEnabled;
export const cancelPrefetchTask = process.env.__NEXT_CLIENT_SEGMENT_CACHE ? function(...args) {
return require('./segment-cache-impl/scheduler').cancelPrefetchTask(...args);
} : notEnabled;
export const reschedulePrefetchTask = process.env.__NEXT_CLIENT_SEGMENT_CACHE ? function(...args) {
return require('./segment-cache-impl/scheduler').reschedulePrefetchTask(...args);
} : notEnabled;
export const isPrefetchTaskDirty = process.env.__NEXT_CLIENT_SEGMENT_CACHE ? function(...args) {
return require('./segment-cache-impl/scheduler').isPrefetchTaskDirty(...args);
} : notEnabled;
export const createCacheKey = process.env.__NEXT_CLIENT_SEGMENT_CACHE ? function(...args) {
return require('./segment-cache-impl/cache-key').createCacheKey(...args);
} : notEnabled;
/**
* Below are public constants. They're small enough that we don't need to
* DCE them.
*/ export var NavigationResultTag = /*#__PURE__*/ function(NavigationResultTag) {
NavigationResultTag[NavigationResultTag["MPA"] = 0] = "MPA";
NavigationResultTag[NavigationResultTag["Success"] = 1] = "Success";
NavigationResultTag[NavigationResultTag["NoOp"] = 2] = "NoOp";
NavigationResultTag[NavigationResultTag["Async"] = 3] = "Async";
return NavigationResultTag;
}({});
/**
* The priority of the prefetch task. Higher numbers are higher priority.
*/ export var PrefetchPriority = /*#__PURE__*/ function(PrefetchPriority) {
/**
* Assigned to the most recently hovered/touched link. Special network
* bandwidth is reserved for this task only. There's only ever one Intent-
* priority task at a time; when a new Intent task is scheduled, the previous
* one is bumped down to Default.
*/ PrefetchPriority[PrefetchPriority["Intent"] = 2] = "Intent";
/**
* The default priority for prefetch tasks.
*/ PrefetchPriority[PrefetchPriority["Default"] = 1] = "Default";
/**
* Assigned to tasks when they spawn non-blocking background work, like
* revalidating a partially cached entry to see if more data is available.
*/ PrefetchPriority[PrefetchPriority["Background"] = 0] = "Background";
return PrefetchPriority;
}({});
export var FetchStrategy = /*#__PURE__*/ function(FetchStrategy) {
// Deliberately ordered so we can easily compare two segments
// and determine if one segment is "more specific" than another
// (i.e. if it's likely that it contains more data)
FetchStrategy[FetchStrategy["LoadingBoundary"] = 0] = "LoadingBoundary";
FetchStrategy[FetchStrategy["PPR"] = 1] = "PPR";
FetchStrategy[FetchStrategy["PPRRuntime"] = 2] = "PPRRuntime";
FetchStrategy[FetchStrategy["Full"] = 3] = "Full";
return FetchStrategy;
}({});
//# sourceMappingURL=segment-cache.js.map