import { redirect } from '@sveltejs/kit';
import type { PageLoad } from './$types';

/**
 * /settings was absorbed into /profile in 0.18.0 — the appearance and
 * reader prefs moved to /profile/preferences and the password form to
 * /profile/account. Anything else that lands here is a stale bookmark;
 * bounce them to the new home.
 */
export const ssr = false;

export const load: PageLoad = () => {
    redirect(308, '/profile/preferences');
};
