makearmy-app/node_modules/next/dist/esm/client/components/segment-cache-impl/cache-key.js
2025-09-22 10:37:53 -04:00

12 lines
No EOL
343 B
JavaScript

// TypeScript trick to simulate opaque types, like in Flow.
export function createCacheKey(originalHref, nextUrl) {
const originalUrl = new URL(originalHref);
const cacheKey = {
href: originalHref,
search: originalUrl.search,
nextUrl: nextUrl
};
return cacheKey;
}
//# sourceMappingURL=cache-key.js.map