Skip to content

feat: Add VITE_HOST env var for instance PR - #292

Open
Pecacheu wants to merge 2 commits into
mainfrom
feat/instance
Open

feat: Add VITE_HOST env var for instance PR#292
Pecacheu wants to merge 2 commits into
mainfrom
feat/instance

Conversation

@Pecacheu

@Pecacheu Pecacheu commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Required change for when stoatchat/for-web#1315 is merged.

New VITE_HOST environment var for web takes the place of all the other individual configuration URLs (VITE_WS_URL, VITE_MEDIA_URL, etc.) that will now be pulled from the backend. Well, technically the existing VITE_API_URL var takes the place of them, the VITE_HOST is necessary because the API could exist at a nonstandard path relative to the frontend domain, though it is almost always https://domain.com/api, we don't want to assume this with no way to override it.

Pecacheu added 2 commits July 15, 2026 13:02
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant