-
Notifications
You must be signed in to change notification settings - Fork 124
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
Support asset_host as a Proc #202
Comments
Hi Lewis! Thanks for reporting. Usually, the asset host will be used as the base for Vite. Since dynamic values for A reasonable behavior when You can try this fix by pinning In order to better inform my decisions, what is your use case for a dynamic |
Hey @ElMassimo -- I'll give this a look We use ActiveAdmin, which serves it's own JS/CSS from the Rails web server. In order to ensure that that works, we've done something like:
I'm not sure if there's a better way to do this, but open to suggestions |
Gotcha, since for development What happens when you don't configure I tried by adding |
Fixed in |
Rails allows passing in a
proc
for asset host -- something like this:Passing in a Proc here currently breaks the helper template tags since the Proc case is not covered
The text was updated successfully, but these errors were encountered: