nitro
nitro copied to clipboard
Database secret
Describe the feature
As title suggests, allows using secret/environment variables to connect to database with Nitro.
Additional information
- [ ] Would you be willing to help implement this feature?
Can you share more details? 🙏 Seems what you need is just Runtime configuration
Seems what you need is just Runtime configuration
Runtime config is not useful in this case, since the database connector options has to be specified in Nitro/Nuxt config file.
using process.env.NITRO_DATABASE_URL tends to work for me inside the nitro config file as a value for the url property
NITRO_DATABASE_URL
it not passed to useDatabase() database configuration.