@medusajs/types 1.12.0-snapshot-20240320164053 → 1.12.0-snapshot-20240321105225
Sign up to get free protection for your applications and to get access to all the features.
@@ -329,6 +329,8 @@ export type ProjectConfigOptions = {
|
|
329
329
|
* // ...
|
330
330
|
* }
|
331
331
|
* ```
|
332
|
+
*
|
333
|
+
* @deprecated use `database_driver_options` instead
|
332
334
|
*/
|
333
335
|
database_extra?: Record<string, unknown> & {
|
334
336
|
/**
|
@@ -341,6 +343,40 @@ export type ProjectConfigOptions = {
|
|
341
343
|
rejectUnauthorized: false;
|
342
344
|
};
|
343
345
|
};
|
346
|
+
/**
|
347
|
+
* An object that includes additional configurations to pass to the database connection. You can pass any configuration. One defined configuration to pass is
|
348
|
+
* `ssl` which enables support for TLS/SSL connections.
|
349
|
+
*
|
350
|
+
* This is useful for production databases, which can be supported by setting the `rejectUnauthorized` attribute of `ssl` object to `false`.
|
351
|
+
* During development, it’s recommended not to pass this option.
|
352
|
+
*
|
353
|
+
* @example
|
354
|
+
* ```js title="medusa-config.js"
|
355
|
+
* module.exports = {
|
356
|
+
* projectConfig: {
|
357
|
+
* database_driver_options:
|
358
|
+
* process.env.NODE_ENV !== "development"
|
359
|
+
* ? { connection: { ssl: { rejectUnauthorized: false } } }
|
360
|
+
* : {},
|
361
|
+
* // ...
|
362
|
+
* },
|
363
|
+
* // ...
|
364
|
+
* }
|
365
|
+
* ```
|
366
|
+
*/
|
367
|
+
database_driver_options?: Record<string, unknown> & {
|
368
|
+
connection?: {
|
369
|
+
/**
|
370
|
+
* Configure support for TLS/SSL connection
|
371
|
+
*/
|
372
|
+
ssl?: {
|
373
|
+
/**
|
374
|
+
* Whether to fail connection if the server certificate is verified against the list of supplied CAs and the hostname and no match is found.
|
375
|
+
*/
|
376
|
+
rejectUnauthorized?: false;
|
377
|
+
};
|
378
|
+
};
|
379
|
+
};
|
344
380
|
/**
|
345
381
|
* Used to specify the URL to connect to Redis. This is only used for scheduled jobs. If you omit this configuration, scheduled jobs won't work.
|
346
382
|
*
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"config-module.d.ts","sourceRoot":"","sources":["../../src/common/config-module.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,yBAAyB,EAC1B,MAAM,gBAAgB,CAAA;AAEvB,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAEtC;;;;GAIG;AACH,KAAK,cAAc,GAAG;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CAC5B,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+CG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+CG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;;;;;;;;;;;;;;;OAiBG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IAEtB;;;;;;;;;;;;;;;;;OAiBG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB;;;;;;;;;;;;;;;;;OAiBG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAE1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;;;;;;;;;;;;OAaG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IAExB;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,gBAAgB,EAAE,aAAa,CAAA;IAE/B;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IAEtB
|
1
|
+
{"version":3,"file":"config-module.d.ts","sourceRoot":"","sources":["../../src/common/config-module.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,yBAAyB,EAC1B,MAAM,gBAAgB,CAAA;AAEvB,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAEtC;;;;GAIG;AACH,KAAK,cAAc,GAAG;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;;OAGG;IACH,SAAS,CAAC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