export default defineNitroConfig({
database: {
default: {
connector: 'sqlite',
options: { name: 'db' }
},
users: {
connector: 'postgresql',
url: 'postgresql://username:password@hostname:port/database_name'
}
}
})
Currently we define pgsql connection information in a configuration file.
I think it's dangerous to expose connection information in config files
Describe the feature
Currently we define pgsql connection information in a configuration file.
I think it's dangerous to expose connection information in config files
Additional information