Create an API token at build time

Hello,

Is it possible to create an API token before starting Strapi, like with an env variable?
I have other services depending on Strapi to run, so now I’m generating a new API key in the bootstrap method and sending it to other containers.

This is really not ideal, what’s the best way to do this?

Thanks

This topic has been created from a Discord post (1230478289047519324) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord