Beavidy
Joined
770 Experience
7 Lessons Completed
0 Questions Solved
Activity
Posted in Javascript not working in production
importmaps
Posted in Javascript not working in production
I'm using Heroku. But now I'm just trying to get it up and running locally in production before trying to deploy again.
Posted in Javascript not working in production
I am using Rails 7 with importmap, everything works fine in development, but in production none of the javascript works. Specifically, my channels files are of the "wrong MIME type" giving a 404, and none of my bootstrap dropdowns work. I haven't even tried the rest, but I'm assuming there is something silly I'm missing and everything will fall into place once i correct that. I've tried clobbering, precompiling, changed relative paths to direct paths. I'm at a loss. Any help is greatly appreciated!