mosh-helpdesk/client/vite.config.ts

24 lines
502 B
TypeScript
Raw Normal View History

2026-02-11 21:33:34 +01:00
import path from "path"
2026-02-09 18:55:29 +01:00
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
2026-02-11 20:21:34 +01:00
import tailwindcss from '@tailwindcss/vite'
2026-02-09 18:55:29 +01:00
// https://vite.dev/config/
export default defineConfig({
2026-02-11 20:21:34 +01:00
plugins: [tailwindcss(), react()],
2026-02-11 21:33:34 +01:00
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
2026-02-09 18:55:29 +01:00
server: {
port: 5173,
proxy: {
'/api': {
2026-02-13 17:46:19 +01:00
target: process.env.VITE_API_URL || 'http://localhost:3000',
2026-02-09 18:55:29 +01:00
changeOrigin: true,
},
},
},
})