cohenerickson / Velocity

Velocity is a fully featured tabbed proxy with a seamless browsing experience.
https://velocity.radon.games
GNU Affero General Public License v3.0
132 stars 301 forks source link

[Bug]: codesandbox usage #42

Open hermanboxcar5 opened 10 months ago

hermanboxcar5 commented 10 months ago

What Happened

When using build of velocity on csb, uv server seems to be routed wrong

Expected Behavior

the uv server to be something like uv.ty62j-3000.csb.app instead of uv.csb.app

Steps to Reproduce

How to reproduce:
import this respitory from github in csb, and then let it do its thing. Then, run the setup commands, and open port 3000. 
Now the URL of my csb is something like ty62j-3000.csb.app, and when I try to use the proxy, it gives me the "Error" page. The bare server it is using seems to be "uv.csb.app/bare3" and won't work.

Other Information

How can I route the uv server with a custom URL? (not uv.something.csb.app instead something.csb.app/uv/)

Checklist

maxicode2 commented 10 months ago

You can set a custom bare URL in the /public/uv/uv.config.js file.

hermanboxcar5 commented 10 months ago

yes but it would be inconsistant with the other files

hermanboxcar5 commented 10 months ago

also when I do that, the bare server URL is still uv.something.csb.app

cohenerickson commented 10 months ago

This is an issue with www. normalization, ill get around to fixing it when I get a chance.

hermanboxcar5 commented 10 months ago

no, no, it does not have anything to do with www. just the bare server insists on being on uv.somethinsomething.csb.app instead of like say somethingsomething.csb.app/bare/bare1

hermanboxcar5 commented 10 months ago

wait a second... do I need to host my bare server somewhere else?

hermanboxcar5 commented 10 months ago

ok guys here is the url: https://7lk3rq-3000.csb.app/ if you try to use it and see the bare server it is uv.7lk3rq-3000.csb.app I want it to be uv.7lk3rq-3000/csb.app/bare/