Get LiveReload to work with custom hostnames #6998
-
I have a custom hostname set up for my project with reverse proxy. The only thing I struggle with is live reloading which is not working. I'm aware there's a second server running in Remix that handles reloading, but I have no idea how to set it up to work with custom hostname. There's a similar stale issue already reported, but I'm wondering if anyone have any solution (could be for v1 or v2 dev server). Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
There's a new env variable, So set remix/packages/remix-react/components.tsx Line 1830 in 47a98bc |
Beta Was this translation helpful? Give feedback.
-
@piotrkulpinski Would you be able to share how you've set up the reverse proxy? I'm using local-ssl-proxy but the |
Beta Was this translation helpful? Give feedback.
There's a new env variable,
REMIX_DEV_ORIGIN
, that theLiveReload
component uses.So set
REMIX_DEV_ORIGIN=https://myhost.local
remix/packages/remix-react/components.tsx
Line 1830 in 47a98bc