SSR을 비활성화하여 SPA로 전환

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
staticandClaude Opus 5.5 committed 2026-10-11 20:49:24 +09:00
1 parent b35585c7bb
commit 35f3e92b5a
34 files changed
+152 -139

No files matched your search

@@ -25,6 +25,12 @@ export const authenticateMiddleware: Handle = async ({ event, resolve }) => {
throw e;
}
if (event.url.pathname === "/auth/login") {
const redirectPath = event.url.searchParams.get("redirect");
// Allow same-origin paths only
redirect(302, redirectPath?.match(/^\/(?![/\\])/) ? redirectPath : "/home");
}
return await resolve(event);
};