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!
I'm using Heroku. But now I'm just trying to get it up and running locally in production before trying to deploy again.