chore: rm database extra (#7963)
This commit is contained in:
@@ -222,37 +222,6 @@ export type ProjectConfigOptions = {
|
|||||||
*/
|
*/
|
||||||
databaseType?: string
|
databaseType?: string
|
||||||
|
|
||||||
/**
|
|
||||||
* An object that includes additional configurations to pass to the database connection. You can pass any configuration. One defined configuration to pass is
|
|
||||||
* `ssl` which enables support for TLS/SSL connections.
|
|
||||||
*
|
|
||||||
* This is useful for production databases, which can be supported by setting the `rejectUnauthorized` attribute of `ssl` object to `false`.
|
|
||||||
* During development, it’s recommended not to pass this option.
|
|
||||||
*
|
|
||||||
* @example
|
|
||||||
* ```js title="medusa-config.js"
|
|
||||||
* module.exports = defineConfig({
|
|
||||||
* projectConfig: {
|
|
||||||
* databaseExtra: process.env.NODE_ENV !== "development" ?
|
|
||||||
* { ssl: { rejectUnauthorized: false } } : {}
|
|
||||||
* // ...
|
|
||||||
* },
|
|
||||||
* // ...
|
|
||||||
* })
|
|
||||||
* ```
|
|
||||||
*/
|
|
||||||
databaseExtra?: Record<string, unknown> & {
|
|
||||||
/**
|
|
||||||
* Configure support for TLS/SSL connection
|
|
||||||
*/
|
|
||||||
ssl: {
|
|
||||||
/**
|
|
||||||
* Whether to fail connection if the server certificate is verified against the list of supplied CAs and the hostname and no match is found.
|
|
||||||
*/
|
|
||||||
rejectUnauthorized: false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An object that includes additional configurations to pass to the database connection for v2. You can pass any configuration. One defined configuration to pass is
|
* An object that includes additional configurations to pass to the database connection for v2. You can pass any configuration. One defined configuration to pass is
|
||||||
* `ssl` which enables support for TLS/SSL connections.
|
* `ssl` which enables support for TLS/SSL connections.
|
||||||
|
|||||||
Reference in New Issue
Block a user