Files
website/packages/webapp/vite.config.ts
Julien Valverdé 307a24da24
All checks were successful
Lint / lint (push) Successful in 13s
ShadCN setup
2025-09-19 04:03:40 +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",
},
},
})