browser cache
This commit is contained in:
parent
f4c6690f1f
commit
a4c4d48027
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';
|
||||
|
||||
export const load: PageServerLoad = ({ cookies }) => {
|
||||
const apiKey = String(cookies.get('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