mirror of
https://github.com/stoatchat/for-web.git
synced 2026-07-20 23:03:46 -04:00
Host setup for local development #532
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 @ivanlori on GitHub (Feb 15, 2026).
What happened?
Hi.
While trying to setup my local environment I read on the README file that the application will be available at the current url -> http://local.revolt.chat:5173
clicking it I get this page:
I solved by updating the
vite.config.tswith the following code:at this point my question is: why this code wasn't there already? Is my setup wrong in some way?
Thanks!
@TonyKuroi commented on GitHub (Feb 15, 2026):
Frankly, the project is still young, and has a lot of similar tiny issues. I've been messing around with it today and in the space of four hours I've found several instances where the documentation is incorrect/outdated, or certain configurations need to be changed.
Interestingly, local.revolt.chat is just set up to resolve to 127.0.0.1, which if I'm being frank is a stupid way to handle a localhost dev environment. But, consequently, the app works just the same if you navigate to http://localhost:5173, which is what vite shows when you start it. Technically, this would be more "reliable," as then it can resolve if the machine you're working on for some reason doesn't have internet.
Anyways, no, your setup isn't incorrect, the documentation is. I'm sure they'll fix it with time.
@Zomatree commented on GitHub (Feb 15, 2026):
The local. domain is mainly for hcaptcha to work on local dev environments, it's not required.