docs: update config to be camel case (#7501)
This commit is contained in:
@@ -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, it’s recommended to set the [database_extra option](/references/medusa-config#database_extra) in `medusa-config.js` to disable the `ssl.rejectUnauthorized` option:
|
||||
In production, it’s 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 } },
|
||||
},
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user