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.