30 lines
592 B
TypeScript
30 lines
592 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
import { oidcSpa } from 'oidc-spa/vite-plugin'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
oidcSpa(),
|
|
react(),
|
|
tailwindcss()
|
|
],
|
|
preview: {
|
|
port: 8080,
|
|
strictPort: true
|
|
},
|
|
server: {
|
|
host: true,
|
|
port: 8080,
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:3000',
|
|
changeOrigin: true,
|
|
secure: false,
|
|
rewrite: (path) => path.replace(/^\/api/, '')
|
|
}
|
|
}
|
|
}
|
|
});
|