Files
sexy.pivoine.art/packages/frontend/vite.config.ts
Sebastian Krüger 27d86fff8b
All checks were successful
Build and Push Docker Image to Gitea / build-and-push (push) Successful in 5m33s
fix: vite wasm rollup
2026-02-06 15:08:32 +01:00

25 lines
578 B
TypeScript

import path from "path";
import tailwindcss from "@tailwindcss/vite";
import { defineConfig } from "vite";
import { sveltekit } from "@sveltejs/kit/vite";
import wasm from 'vite-plugin-wasm';
export default defineConfig({
plugins: [sveltekit(), tailwindcss(), wasm()],
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,
},
},
},
});