mirror of
https://github.com/stoatchat/self-hosted.git
synced 2026-07-21 12:35:23 -04:00
bug: Changes to API endpoints .env not being respected #68
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jwheeler31 on GitHub (Aug 31, 2024).
What happened?
Working on deploying a proof of concept. Experiencing an issue when attempting to assign a username, post sign up. Turns out that the UI is attempting to communicate via
ws://local.revolt.chat/ws. Confirmed via the/apiendpoint that none of the configured values are being returned.Expected behavior is for the application to continue into the typical application operation.
@DeclanChidlow commented on GitHub (Aug 31, 2024):
Hi,
Currently working on updating the guide. Does this version work for you?
https://github.com/DeclanChidlow/self-hosted
@jwheeler31 commented on GitHub (Aug 31, 2024):
Thank you for the quick response. So, yes, it solved the original issue. I'd recommend modifying the
wgetto:as, for some odd reason, it was attempting to create a
Revolt.tomldirectory.This new problem is most likely out of scope of this issue. I'm dealing with:
I tried changing the all the entries in the
.envandRevolt.toml, to no avail. Following the stack trace, it seems thatimport.meta.env.VITE_API_URLis returninghttp://revolt.mydomain.tld/api(that's the value assigned to theapiClient.api.baseURLobject).If you have any suggestions, they'd be much appreciated. Otherwise, feel free to close this issue.
@DeclanChidlow commented on GitHub (Aug 31, 2024):
Thanks for notifying me about the Revolt.toml issue. Hadn't encountered that in my testing and I'll be sure to update it.
As for the http error, I'd suggest disabling HTTPS-Only mode in your browser. In Firefox it's done like this:
https://support.mozilla.org/en-US/kb/https-only-prefs
Hopefully that fixes your issue.
@jwheeler31 commented on GitHub (Aug 31, 2024):
It'd be nice if it were that simple, but I expect to have a large group of individuals playing with this (20 or so). I'm not sure how the
VITE_API_URLvalue is being reinterpreted from the value in.env. Maybe testing a merge with the latest will make a difference.Thanks again!