I need to refresh my page every time to work my JavaScript code in my rails 7.1 app after deployment

Hello.
I need to refresh my page every time to work my JavaScript code in my rails 7.1 app after deployment.
But, on my local server, everything is working fine.
How to solve this problem?

I solved the issue by removing “@hotwired/turbo-rails” from both application.js and layouts#application.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.