feat: update frontend path to '/badge' and adjust related documentation
This commit is contained in:
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user