including-modules
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
// 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
|
||||
Reference in New Issue
Block a user