Precompilation in rails 7

As in older versions of rails, in production, we used to precompile our assets first so that performance can be better while serving assets from public. But in rails 7, as default configuration says that you should use all your css , fonts, and custom js files from asset pipeline and ecternal js libraries using importmaps, then what is the precompilation process of rails 7 in production.

Once deployed, on the production server, before you start the app:

rails assets:precompile

Then you can start the rails server.