This commit is contained in:
Andras Bacsai
2021-06-24 23:31:08 +02:00
committed by GitHub
parent a8e9668c2b
commit 2d0f22b379
22 changed files with 2220 additions and 1070 deletions

View File

@@ -101,7 +101,7 @@ export async function handle({ request, resolve }) {
cookie: { path: '/', secure: true }
});
} catch (error) {
console.log(error)
console.log(error);
return {
status: 302,
headers: {
@@ -124,7 +124,7 @@ export async function handle({ request, resolve }) {
if (!session['set-cookie']) {
if (!session?.data?.coolToken && !publicPages.includes(request.path)) {
return {
status: 301,
status: 302,
headers: {
location: '/'
}