Backend / Lint i formatowanie (pull_request) Successful in 4s
Panel / Lint, typy i build (pull_request) Successful in 4m50s
Panel / Testowy build obrazu (pull_request) Failing after 2s
Backend / Testy i kontrakt API (pull_request) Successful in 9m24s
Backend / Testowy build obrazu (pull_request) Successful in 1m38s
24 lines
639 B
TypeScript
24 lines
639 B
TypeScript
import { fileURLToPath, URL } from 'node:url'
|
|
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
// Panel buduje się do dist/ i trafia do obrazu aplikacji serwowanej przez Pythona.
|
|
const BACKEND = process.env.VITE_BACKEND_URL ?? 'http://localhost:8000'
|
|
|
|
export default defineConfig({
|
|
plugins: [vue()],
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
},
|
|
},
|
|
server: {
|
|
port: 5173,
|
|
// W trybie deweloperskim proxy Vite kieruje API do backendu.
|
|
proxy: {
|
|
'/api': BACKEND,
|
|
'/ws': { target: BACKEND.replace(/^http/, 'ws'), ws: true },
|
|
},
|
|
},
|
|
})
|