mirror of
https://github.com/kuhyx/screen-locker.git
synced 2026-11-10 18:07:22 +01:00
One static Astro page, vanilla TS poller and renderer, @kuhyx/web-ui 0.5.0 for tokens only. Same web/dist output. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WzxdWYdwRAtMg7ki6TKxuU
17 lines
484 B
JavaScript
17 lines
484 B
JavaScript
import { defineConfig } from 'astro/config'
|
|
|
|
// The Python API (`screen-locker-web`) runs on 127.0.0.1:8770 — 8000 belongs to
|
|
// steam-backlog-enforcer's own UI. In dev, Astro serves the UI and proxies
|
|
// `/api/*` to it, so there are no CORS concerns. In production the Python
|
|
// server serves the built bundle from `web/dist`.
|
|
export default defineConfig({
|
|
output: 'static',
|
|
vite: {
|
|
server: {
|
|
proxy: {
|
|
'/api': 'http://127.0.0.1:8770',
|
|
},
|
|
},
|
|
},
|
|
})
|