Archived
20 lines
559 B
TypeScript
20 lines
559 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
|
|
// dist/ is copied into the Spring jar's static/ by platform-parent's managed build.
|
|
export default defineConfig({
|
|
base: '/',
|
|
plugins: [react(), tailwindcss()],
|
|
build: { outDir: 'dist', emptyOutDir: true },
|
|
server: {
|
|
port: 5173,
|
|
proxy: {
|
|
'/api': 'http://127.0.0.1:8080',
|
|
'/oauth2': 'http://127.0.0.1:8080',
|
|
'/login': 'http://127.0.0.1:8080',
|
|
'/logout': 'http://127.0.0.1:8080',
|
|
},
|
|
},
|
|
});
|