-
Notifications
You must be signed in to change notification settings - Fork 120
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
Why do certain pins disappear in production? #223
Comments
You sure you checked in those files into git? Almost looks like vendor/javascript might not be under version control, so the files only exist locally? |
I had a similar issue where assets worked fine in development (probably an option to disable that for easier debugging), but didn't on production. They weren't in the importmap and I couldn't figure out why. Turns out that I had earlier added Changing it to |
Just deploying my first rails 7 app to production. Nginx + Passenger after RAILS_ENV=production assets:precompile. Getting javascript error:
TypeError: Module name, 'uikit' does not resolve to a valid URL.
Looking at the html I notice there are no import maps for uikit. But they were pinned. Noticed that in production those pins are being pulled out. Any idea why? The js files themselves are in the public directory after being precompiled.
Did not even think there were any flags to mark pins for production vs development.
The text was updated successfully, but these errors were encountered: