Skip to content

Instantly share code, notes, and snippets.

@ashmore11
Last active January 5, 2021 09:37
Show Gist options
  • Save ashmore11/b5f722bf0941905935d9ebe63e22c3d2 to your computer and use it in GitHub Desktop.
Save ashmore11/b5f722bf0941905935d9ebe63e22c3d2 to your computer and use it in GitHub Desktop.
Next Strapi Cloud Run (strapi database config)
module.exports = ({ env }) => ({
defaultConnection: 'default',
connections: {
default: {
connector: 'bookshelf',
settings: {
client: 'mysql',
database: env('DB_NAME'),
host: env('DB_HOST'),
port: env.int('DB_PORT'),
username: env('DB_USERNAME'),
password: env('DB_PASSWORD'),
},
options: {
debug: true,
},
},
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment