16 lines
351 B
JavaScript
16 lines
351 B
JavaScript
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
|