Add frontend Vite app

This commit is contained in:
2026-04-03 11:56:01 +02:00
parent 29ee01afba
commit 6622e2807b
21 changed files with 6674 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
import path from "path";
// https://vite.dev/config/
export default defineConfig({
plugins: [react(), tailwindcss()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
server: {
port: 3000,
allowedHosts: ['mbjan.local'],
proxy: {
'/api/v1': {
target: 'http://localhost:4321/api/v1',
changeOrigin: true,
},
}
}
})