You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everyone! Help really wanted :( I have a self-hosted code-server instance and I want to run remix app inside of it. When app starts, code-server also starts port forwarding for particular port, so that application can be available outside of the container.
But when i get into the app through the proxy (https://codeserver.somedomain.com/proxy/5173) the app can't actually resolve correctly resources. We can clearly see on network tab in devtools that all of them missing that proxy part, basically requesting resources from root of domain. For example root.tsx file will be requested from https://codeserver.somedomain.com/app/root.tsx, not https://codeserver.somedomain.com/proxy/5173/app/root.tsx. I was thinking about changing basename, but after playing around with base and basename in remix and vite configurations I wasn't able to successfully load resources...
Also I made a new discussion in remix repo, but I don't think there will be any guys who can help with that: remix-run/remix#10050
If anyone have any suggestion or have experience with resolving that, your response will be highly appreciated!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi everyone! Help really wanted :( I have a self-hosted code-server instance and I want to run remix app inside of it. When app starts, code-server also starts port forwarding for particular port, so that application can be available outside of the container.
Example:
code-server deployed location: https://codeserver.somedomain.com/
proxied location (remix app): https://codeserver.somedomain.com/proxy/5173
But when i get into the app through the proxy (https://codeserver.somedomain.com/proxy/5173) the app can't actually resolve correctly resources. We can clearly see on network tab in devtools that all of them missing that proxy part, basically requesting resources from root of domain. For example root.tsx file will be requested from https://codeserver.somedomain.com/app/root.tsx, not https://codeserver.somedomain.com/proxy/5173/app/root.tsx. I was thinking about changing basename, but after playing around with base and basename in remix and vite configurations I wasn't able to successfully load resources...
Also I made a new discussion in remix repo, but I don't think there will be any guys who can help with that:
remix-run/remix#10050
If anyone have any suggestion or have experience with resolving that, your response will be highly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions