2025-10-25 22:04:41 +02:00
|
|
|
import path from "path";
|
|
|
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
|
|
|
import { defineConfig } from "vite";
|
|
|
|
|
import { sveltekit } from "@sveltejs/kit/vite";
|
2026-02-06 15:00:04 +01:00
|
|
|
import wasm from 'vite-plugin-wasm';
|
2025-10-25 22:04:41 +02:00
|
|
|
|
|
|
|
|
export default defineConfig({
|
2026-02-06 15:00:04 +01:00
|
|
|
plugins: [sveltekit(), tailwindcss(), wasm()],
|
2025-10-25 22:04:41 +02:00
|
|
|
resolve: {
|
|
|
|
|
alias: { $lib: path.resolve("./src/lib"), "@": path.resolve("./src/lib") },
|
|
|
|
|
},
|
|
|
|
|
server: {
|
|
|
|
|
port: 3000,
|
|
|
|
|
proxy: {
|
|
|
|
|
"/api": {
|
|
|
|
|
rewrite: (path) => path.replace(/^\/api/, ""),
|
|
|
|
|
target: "http://localhost:8055",
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
secure: false,
|
|
|
|
|
ws: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
});
|