fix(web): stabilize local sign-in and page lifecycle handling
This commit is contained in:
parent
3a290cc8a7
commit
0874e44c12
7 changed files with 79 additions and 17 deletions
|
|
@ -43,7 +43,7 @@ bun run type-check
|
|||
|
||||
These start Vite development, build static assets, preview a build, and check frontend types respectively; run the command you need. React, TypeScript, Vite, Tailwind, Headless UI and Recharts are the main UI dependencies. See [package.json](package.json) for scripts and pinned ranges.
|
||||
|
||||
Vite is configured for `127.0.0.1:3000`. The API origin is `VITE_API_BASE_URL` when supplied; otherwise development uses the browser's hostname on port `2003`, and production uses the page's own origin. The dev server has no configured API proxy. The backend must be running and allow the frontend origin for authenticated cross-origin requests.
|
||||
Vite is configured for `127.0.0.1:5173`, with a fixed port so it cannot silently move to an origin the API does not allow. Port `3000` belongs to Grafana in the Docker stack. Open `http://localhost:5173` or `http://127.0.0.1:5173`. The API origin is `VITE_API_BASE_URL` when supplied; the checked-in value is blank, so development follows the browser's hostname on port `2003`, and production uses the page's own origin. This keeps the session cookie on the same hostname: mixing `127.0.0.1` and `localhost` can prevent sign-in from persisting. Restart Vite after changing environment configuration. The dev server has no configured API proxy. The backend must be running and allow the frontend origin for authenticated cross-origin requests.
|
||||
|
||||
Browser authentication uses HttpOnly session cookies. `VITE_API_BASE_URL` is a public address, not a place for service credentials. Research runs also need the orchestrator and its configured infrastructure; starting Vite alone supplies the interface only.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue