Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add base url config option for hot-reloading #3440

Open
Mubelotix opened this issue Jan 4, 2025 · 1 comment
Open

Add base url config option for hot-reloading #3440

Mubelotix opened this issue Jan 4, 2025 · 1 comment

Comments

@Mubelotix
Copy link

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like

This is what is currently implemented for HydrationScripts

<HydrationScripts options=leptos_options.clone() root="https://code.mub.lol/proxy/3000"/>

I need the same root argument thing for AutoReload

Describe alternatives you've considered

Not using auto-reload.

Additional context

This is where the base url must be inserted

let ws = new WebSocket(`${protocol}${host}:${reload_port}/live_reload`);

The same thing already exists for the protocol. It would be an easy PR, if that's convenient for you I can make it, but I need confirmation it would get merged

@gbj
Copy link
Collaborator

gbj commented Jan 4, 2025

Sure, a PR is welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants