feat(dev): serve Vite and FastAPI through the existing UI endpoint

This commit is contained in:
2026-10-06 16:43:55 -03:00
parent 7285d22e6c
commit cb09e75bbd
4 changed files with 135 additions and 15 deletions
+5 -3
View File
@@ -1,4 +1,6 @@
# Existing s2s-client FastAPI server. Used only by Vite's server-side proxy.
S2S_BACKEND_URL=http://127.0.0.1:8420
# Comma-separated hostnames, only needed when accessing Vite through a remote host.
# FastAPI target when running npm run dev independently. start_ui.sh sets this
# to its own backend using S2S_BACKEND_PORT (default 8421).
S2S_BACKEND_URL=http://127.0.0.1:8421
# Comma-separated hostnames for remote access, without scheme or port.
# With start_ui.sh this can also be set in the repository root .env.
S2S_DEV_ALLOWED_HOSTS=