Migrace sestavování klienta na Vite

This commit is contained in:
2024-12-11 22:54:57 +01:00
parent b0d8a1a830
commit 18f2b72133
16 changed files with 5786 additions and 11889 deletions

16
client/vite.config.ts Normal file
View File

@@ -0,0 +1,16 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import viteTsconfigPaths from 'vite-tsconfig-paths'
export default defineConfig({
// depending on your application, base can also be "/"
base: '',
plugins: [react(), viteTsconfigPaths()],
server: {
open: true,
port: 3000,
proxy: {
'/api': 'http://localhost:3001',
}
},
})