figure out why it's stuck in an infinite loop
This commit is contained in:
parent
e44510110b
commit
abea7b3e47
1 changed files with 2 additions and 2 deletions
|
@ -1,10 +1,10 @@
|
||||||
import { redirect } from '@sveltejs/kit';
|
//import { redirect } from '@sveltejs/kit';
|
||||||
import type { PageServerLoad } from './$types';
|
import type { PageServerLoad } from './$types';
|
||||||
|
|
||||||
export const load: PageServerLoad = ({ cookies }) => {
|
export const load: PageServerLoad = ({ cookies }) => {
|
||||||
const apiKey = String(cookies.get('apiKey') ?? '');
|
const apiKey = String(cookies.get('apiKey') ?? '');
|
||||||
|
|
||||||
if (!apiKey) {
|
if (!apiKey) {
|
||||||
return redirect(301, `${process.env.API_URL}/auth/new-login`);
|
//return redirect(301, `${process.env.API_URL}/auth/new-login`);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue