Heftig rekatorering

This commit is contained in:
Håkon Størdal 2025-09-03 18:24:13 +02:00
parent 35ecc5f7a7
commit 3261e4c3bf

View file

@ -1,11 +1,5 @@
import type { Handle, ServerInit } from '@sveltejs/kit'; import type { Handle, ServerInit } from '@sveltejs/kit';
import { dev } from '$app/environment'; import { dev } from '$app/environment';
import { db } from '$lib/db';
export const init: ServerInit = async () => {
await db.createTables();
console.log('Tables created');
};
// The handle function runs on every request // The handle function runs on every request
export const handle: Handle = async ({ event, resolve }) => { export const handle: Handle = async ({ event, resolve }) => {