lingjing/node_modules/next/dist/esm/client/components/segment-cache/cache-key.js
2026-02-23 09:51:43 +00:00

12 lines
355 B
JavaScript

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