feat: update frontend path to '/badge' and adjust related documentation

This commit is contained in:
EmanueleAlfano
2026-02-04 13:12:15 +01:00
parent 77bea025fa
commit 458b074f45
10 changed files with 471 additions and 37 deletions

View File

@@ -7,8 +7,8 @@ import tailwindcss from '@tailwindcss/vite'
export default defineConfig({
plugins: [react(), tailwindcss()],
// Path relativi per funzionare su qualsiasi IP/porta
base: './',
// Base path per il frontend servito su /badge
base: '/badge/',
// Build nella cartella dist del frontend
build: {
@@ -30,22 +30,10 @@ export default defineConfig({
},
// Proxy API in sviluppo verso il backend (porta 8000)
// In produzione il backend serve direttamente il frontend
// In produzione il backend serve il frontend su /badge e le API su /api/*
server: {
proxy: {
'/info-room': {
target: 'http://127.0.0.1:8000',
changeOrigin: true,
},
'/login-validate': {
target: 'http://127.0.0.1:8000',
changeOrigin: true,
},
'/anagrafica': {
target: 'http://127.0.0.1:8000',
changeOrigin: true,
},
'/entry-request': {
'/api': {
target: 'http://127.0.0.1:8000',
changeOrigin: true,
},