workspace.synops.no / viser arbeidsflaten direkte, ikke redirect til /workspace
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
be6aa2b1bc
commit
7c4d51a267
1 changed files with 2 additions and 2 deletions
|
|
@ -17,11 +17,11 @@ const authorizationHandle: Handle = async ({ event, resolve }) => {
|
|||
if (path === '/') {
|
||||
const host = event.url.hostname;
|
||||
if (host.startsWith('workspace.')) {
|
||||
// workspace.synops.no: uautentisert → login, autentisert → workspace
|
||||
// workspace.synops.no: uautentisert → login, autentisert → vis direkte
|
||||
if (!session?.user) {
|
||||
throw redirect(303, '/auth/signin');
|
||||
}
|
||||
throw redirect(303, '/workspace');
|
||||
return resolve(event);
|
||||
}
|
||||
// synops.no: vis landingsside for alle
|
||||
if (session?.user) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue