@henosia/app-next 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/server.mjs +2 -1
- package/package.json +1 -1
package/dist/auth/server.mjs
CHANGED
|
@@ -59,7 +59,8 @@ const henosiaAuthConfig = {
|
|
|
59
59
|
* Gets whether the specified request is for a page (a top level page or iframe page)
|
|
60
60
|
*/
|
|
61
61
|
function isPageRequest(request) {
|
|
62
|
-
const
|
|
62
|
+
const { headers } = request;
|
|
63
|
+
const dest = headers.get("X-Henosia-Fetch-Dest") ?? headers.get("Sec-Fetch-Dest");
|
|
63
64
|
if (dest === "document" || dest === "iframe" || dest === "fencedframe") return true;
|
|
64
65
|
const isRsc = request.headers.get("RSC") === "1";
|
|
65
66
|
const isPrefetch = request.headers.get("Next-Router-Prefetch") === "1";
|
package/package.json
CHANGED