Files
website/packages/webapp/vite.config.ts
Julien Valverdé 1cd70b3ed0
All checks were successful
Build / build (push) Successful in 48s
Lint / lint (push) Successful in 13s
09-22-2025 (#7)
Co-authored-by: Julien Valverdé <julien.valverde@mailo.com>
Reviewed-on: #7
2025-09-20 04:49:37 +02:00

33 lines
664 B
TypeScript

import tailwind from "@tailwindcss/vite"
import { tanstackRouter } from "@tanstack/router-plugin/vite"
import react from "@vitejs/plugin-react"
import path from "node:path"
import { defineConfig } from "vite"
// https://vite.dev/config/
export default defineConfig({
plugins: [
tanstackRouter({
target: "react",
autoCodeSplitting: true,
}),
react(),
tailwind(),
],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
server: {
host: true,
port: 80,
proxy: {
"^/rpc.*": "http://server",
},
},
})