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