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>
14 lines
No EOL
479 B
Text
14 lines
No EOL
479 B
Text
// TypeScript trick to simulate opaque types, like in Flow.
|
|
export function createCacheKey(originalHref, nextUrl) {
|
|
// TODO: We should remove the hash from the href and track that separately.
|
|
// There's no reason to vary route entries by hash.
|
|
const originalUrl = new URL(originalHref);
|
|
const cacheKey = {
|
|
href: originalHref,
|
|
search: originalUrl.search,
|
|
nextUrl: nextUrl
|
|
};
|
|
return cacheKey;
|
|
}
|
|
|
|
//# sourceMappingURL=cache-key.js.map |