docs: update config to be camel case (#7501)

This commit is contained in:
Shahed Nasser
2024-05-28 15:52:03 +03:00
committed by GitHub
parent 82be054a1a
commit 8f97af0d91
6 changed files with 9 additions and 9 deletions
@@ -105,13 +105,13 @@ const DATABASE_URL =
`@${DB_HOST}:${DB_PORT}/${DB_DATABASE}`
```
In addition, add to the `projectConfig` property in the exported object a new property `database_extra`:
In addition, add to the `projectConfig` property in the exported object a new property `databaseExtra`:
```js title="medusa-config.js"
module.exports = {
projectConfig: {
// ...
database_extra: { ssl: { rejectUnauthorized: false } },
databaseExtra: { ssl: { rejectUnauthorized: false } },
},
}
```
@@ -32,13 +32,13 @@ Make sure the `start` script in your `package.json` runs migrations, the `build`
## Set SSL Database Option
In production, its recommended to set the [database_extra option](/references/medusa-config#database_extra) in `medusa-config.js` to disable the `ssl.rejectUnauthorized` option:
In production, its recommended to set the [databaseExtra option](/references/medusa-config#databaseExtra) in `medusa-config.js` to disable the `ssl.rejectUnauthorized` option:
```js title="medusa-config.js" highlights={[["4"]]}
module.exports = {
projectConfig: {
// ...
database_extra: process.env.NODE_ENV !== "development" ?
databaseExtra: process.env.NODE_ENV !== "development" ?
{
ssl: {
rejectUnauthorized: false,
@@ -186,13 +186,13 @@ Update the `scripts` in `package.json` to include the following scripts:
### Changes to medusa-config.js
Add to the `projectConfig` property in the exported object a new property `database_extra`:
Add to the `projectConfig` property in the exported object a new property `databaseExtra`:
```js title="medusa-config.js"
module.exports = {
projectConfig: {
// ...
database_extra: { ssl: { rejectUnauthorized: false } },
databaseExtra: { ssl: { rejectUnauthorized: false } },
},
}
```