se implemento un frotend para el panel administrador
This commit is contained in:
18
admin-panel/vite.config.js
Normal file
18
admin-panel/vite.config.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import react from '@vitejs/plugin-react';
|
||||
|
||||
export default defineConfig(({ command }) => ({
|
||||
plugins: [react()],
|
||||
base: command === 'build' ? '/panel/' : '/',
|
||||
server: {
|
||||
port: 5173,
|
||||
proxy: {
|
||||
'/api': { target: 'http://localhost:8080', changeOrigin: true },
|
||||
'/auth': { target: 'http://localhost:8080', changeOrigin: true },
|
||||
},
|
||||
},
|
||||
build: {
|
||||
outDir: '../src/main/resources/static/panel',
|
||||
emptyOutDir: true,
|
||||
},
|
||||
}));
|
||||
Reference in New Issue
Block a user