import { sveltekit } from "@sveltejs/kit/vite" import morgan from "morgan" import { defineConfig } from "vite" const middlewaresPlugin = { name: "tricoteuses-middlewares", async configureServer(server) { server.middlewares.use(morgan("dev")) }, } export default defineConfig({ plugins: [sveltekit(), middlewaresPlugin], })