se implemento un frotend para el panel administrador

This commit is contained in:
unknown
2026-05-21 15:13:00 -04:00
parent 6cf84336a2
commit b64813ebf7
21 changed files with 3742 additions and 0 deletions

View 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,
},
}));