Skip to content

Commit

Permalink
add debug hack
Browse files Browse the repository at this point in the history
  • Loading branch information
qizheng7 committed Jun 17, 2023
1 parent 63e4ee1 commit e7c0dd7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions skyagi-web/src/hooks.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ export const handle: Handle = async ({ event, resolve }) => {
};

const session = await event.locals.getSession()
/*
if (!session && event.url.pathname !== '/') {
// the user is not signed in
throw redirect(303, '/')
}
*/

return resolve(event, {
/**
Expand Down
5 changes: 4 additions & 1 deletion skyagi-web/svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ const config = {
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
adapter: adapter()
adapter: adapter(),
csrf: {
checkOrigin: false,
},
}
};

Expand Down

0 comments on commit e7c0dd7

Please sign in to comment.