Some checks failed
Build and Deploy Website / build (push) Failing after 2m46s
26 lines
553 B
TypeScript
26 lines
553 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
base: '/app/',
|
|
server: {
|
|
proxy: {
|
|
'/api': 'http://localhost:8080',
|
|
},
|
|
},
|
|
build: {
|
|
outDir: '../Backend/public/app',
|
|
emptyOutDir: true,
|
|
rollupOptions: {
|
|
output: {
|
|
manualChunks: {
|
|
vendor: ['react', 'react-dom'],
|
|
cloudscape: ['@cloudscape-design/components', '@cloudscape-design/global-styles'],
|
|
},
|
|
},
|
|
},
|
|
},
|
|
})
|