Skip to content

Commit

Permalink
Add debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
CannonLock committed Sep 18, 2024
1 parent ad9ded1 commit dde88c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pages/dev/security/+guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const guard: GuardAsync = async (
// Render the login page while preserving the URL. (This is novel technique
// which we explain down below.)
throw redirect(
`${ingestPrefix}/security/login?return_url=${pageContext.url}`
`${ingestPrefix}/security/login?return_url=${pageContext.urlOriginal}`
);
/* The more traditional way, redirect the user:
throw redirect('/login')
Expand Down
3 changes: 3 additions & 0 deletions server/vike-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ export async function vikeHandler<
user,
macrostratLogoFlavor: macrostratLogoFlavor(),
};

console.log(pageContextInit);

const pageContext = await renderPage(pageContextInit);
const response = pageContext.httpResponse;

Expand Down

0 comments on commit dde88c5

Please sign in to comment.