remove bloat fonts, get rid of svelte-i18n

Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
ngn
2025-07-24 06:15:19 +03:00
parent bf95c575eb
commit e3692f90b1
53 changed files with 1965 additions and 2616 deletions

14
app/src/hooks.server.js Normal file
View File

@@ -0,0 +1,14 @@
import { redirect } from "@sveltejs/kit";
/** @type {import('@sveltejs/kit').HandleServerError} */
export async function handleError({ error, status }) {
// for unknown routes, just redirect to /
if (status === 404) {
return redirect(303, "/");
}
// for other errors, pass the message which will be used by the error page
return {
message: `${error}`,
};
}