Files
Musify/web-player/src/routes/login/+page.server.ts
T
Admin 97daa13ebd refactor: rename frontend/ to web-player/ and format with prettier
Updates the compose build context, the Dockerfile header, the package
name and the docs. The compose service and container keep the name
frontend/musify-frontend, since nginx routes to http://frontend:3000.

The source files also carry the first prettier pass, so the rename and
the reformat land together for them.
2026-07-20 07:35:01 +02:00

10 lines
297 B
TypeScript

import { redirect } from '@sveltejs/kit';
import type { PageServerLoad } from './$types';
export const load: PageServerLoad = ({ locals, url }) => {
if (locals.user) {
redirect(302, url.searchParams.get('returnTo') ?? '/');
}
return { returnTo: url.searchParams.get('returnTo') ?? '/' };
};