chore(types,framework): pick ssl types from tls lib (#11381)

* chore(types,framework): pick ssl types from tls lib

* chore: call from node:tls directly
This commit is contained in:
Riqwan Thamir authored and GitHub committed 2025-02-11 09:52:33 +01:00
1 parent 244cd714b2
commit cf788ec49e
2 files changed
+7 -15

No files matched your search

+5 -9
View File
@@ -4,6 +4,7 @@ import {
} from "@medusajs/types"
import type { RedisOptions } from "ioredis"
import { ConnectionOptions } from "node:tls"
// @ts-expect-error
import type { InlineConfig } from "vite"
@@ -304,12 +305,7 @@ export type ProjectConfigOptions = {
/**
* 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
}
ssl?: boolean | ConnectionOptions
}
}
@@ -874,9 +870,9 @@ export type ConfigModule = {
*/
plugins: (
| {
/**
* The name of the plugin's package as specified in the plugin's `package.json` file.
*/
/**
* The name of the plugin's package as specified in the plugin's `package.json` file.
*/
resolve: string
/**
* An object that includes options to be passed to the modules within the plugin.
@@ -4,6 +4,7 @@ import {
} from "../modules-sdk"
import type { RedisOptions } from "ioredis"
import { ConnectionOptions } from "node:tls"
// @ts-ignore
import type { InlineConfig } from "vite"
@@ -280,12 +281,7 @@ export type ProjectConfigOptions = {
/**
* 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
}
ssl?: boolean | ConnectionOptions
}
}