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
Create a remix application and set the remix.config.js field publicPath to something other than /build/.
Upon running remix dev and accessing the URL in a browser, assets cannot be found.
Expected Behavior
It should be possible to customize the asset serving path while developing.
Actual Behavior
Currently the publicPath is being ignored and prevents the use of a custom path while developing.
No mention of this limitation is made in the documentation as far as I know.
Behavior is consistent with the hardcoded path in the codebase.
I'm seeing the same problem as well, using the Cloudflare Workers runtime. Seems as though the publicPath value in the Remix config is just not being regarded in the serving of static assets of any runtime.
If the intention of this is to simply support CDN domains for static assets, and I'm not sure if it is or not, the docs really should say so... the presumption is we can use this to add route prefixes to the static URLs to allow for more complex routing scenarios (behind proxies/load balancers etc.)
Hello,
I hope you are having a great day !
🌴
What version of Remix are you using?
1.4.1
Steps to Reproduce
Create a remix application and set the
remix.config.js
fieldpublicPath
to something other than/build/
.Upon running
remix dev
and accessing the URL in a browser, assets cannot be found.Expected Behavior
It should be possible to customize the asset serving path while developing.
Actual Behavior
Currently the
publicPath
is being ignored and prevents the use of a custom path while developing.No mention of this limitation is made in the documentation as far as I know.
Behavior is consistent with the hardcoded path in the codebase.
remix/packages/remix-serve/index.ts
Lines 13 to 18 in b1ce044
The text was updated successfully, but these errors were encountered: