Missing `secret_key_base` for 'production' environment

Hello,

I try to deploy my application on a server.

My config:
Debian 12 on the server
Ruby 3.2.2
Rails 7.0.8.7

However, I get this error:
Missing secret_key_base for ‘production’ environment

I don’t understand why, because I execute this:
EDITOR=sed rails credentials:edit --environment production

But the error is always here.

I read on the log that /config/credentials/production.key is not in git.
It is a good thing, or not ?

Thank you for your help!