chore: svelte-kit-2 (#6103)

* chore: upgrade svelte

* chore: type imports

* chore: types
This commit is contained in:
Jason Rasmussen
2024-01-20 13:47:41 -05:00
committed by GitHub
parent 4ebb9974ff
commit 6e066aa220
108 changed files with 376 additions and 1323 deletions
+2 -2
View File
@@ -10,13 +10,13 @@ export const csr = true;
export const load = (async () => {
const authenticated = await isLoggedIn();
if (authenticated) {
throw redirect(302, AppRoute.PHOTOS);
redirect(302, AppRoute.PHOTOS);
}
const { data } = await api.serverInfoApi.getServerConfig();
if (data.isInitialized) {
// Redirect to login page if there exists an admin account (i.e. server is initialized)
throw redirect(302, AppRoute.AUTH_LOGIN);
redirect(302, AppRoute.AUTH_LOGIN);
}
return {