4dd15dceab
- Fix teamSessions → team_sessions to match PocketBase collection name - Replace <a @click> with <router-link> in Login and Register views - Update PocketBase default URL and vite proxy target - Comment out docker-compose user directive for permission fix Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
23 lines
493 B
TypeScript
23 lines
493 B
TypeScript
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import path from 'node:path'
|
|
|
|
export default defineConfig({
|
|
plugins: [vue()],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, 'src')
|
|
}
|
|
},
|
|
server: {
|
|
port: Number(process.env.VITE_PORT) || 5173,
|
|
proxy: {
|
|
'/api': {
|
|
target: process.env.VITE_PB_URL || 'http://localhost:8090',
|
|
changeOrigin: true,
|
|
rewrite: (path) => path.replace(/^\/api/, '')
|
|
}
|
|
}
|
|
}
|
|
})
|