Front: same-origin — nginx/vite proxy /api i /health do API (apiUrl pusty, wspolna siec fitos-net)
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
# Build-time fallback (runtime config.js takes precedence)
|
||||
VITE_API_URL=http://tisachi.ddns.net:9002
|
||||
# Domyślnie nic nie ustawiaj: API jest proxywane w tym samym originsie co SPA
|
||||
# (nginx w kontenerze / vite dev proxy), a runtime config (public/config.js) ma pusty apiUrl.
|
||||
# VITE_API_URL tylko dla awaryjnego wskazania zewnętrznego adresu API (build-time fallback).
|
||||
# VITE_API_URL=http://localhost:9002
|
||||
|
||||
Reference in New Issue
Block a user