Portul 8000 e folosit de alt proiect (roa2web) în acest mediu; mut backend-ul space-booking pe 8001 și actualizez proxy-ul Vite `/api` în consecință, ca cele două să coexiste. Adaug `.pids` în .gitignore. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
25 lines
513 B
TypeScript
25 lines
513 B
TypeScript
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import { fileURLToPath, URL } from 'node:url'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [vue()],
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
}
|
|
},
|
|
server: {
|
|
port: 5173,
|
|
host: '0.0.0.0',
|
|
allowedHosts: ['claude-agent', 'localhost'],
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:8001',
|
|
changeOrigin: true
|
|
}
|
|
}
|
|
}
|
|
})
|