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:
@@ -4,6 +4,7 @@ import {
|
|||||||
} from "@medusajs/types"
|
} from "@medusajs/types"
|
||||||
|
|
||||||
import type { RedisOptions } from "ioredis"
|
import type { RedisOptions } from "ioredis"
|
||||||
|
import { ConnectionOptions } from "node:tls"
|
||||||
// @ts-expect-error
|
// @ts-expect-error
|
||||||
import type { InlineConfig } from "vite"
|
import type { InlineConfig } from "vite"
|
||||||
|
|
||||||
@@ -304,12 +305,7 @@ export type ProjectConfigOptions = {
|
|||||||
/**
|
/**
|
||||||
* Configure support for TLS/SSL connection
|
* Configure support for TLS/SSL connection
|
||||||
*/
|
*/
|
||||||
ssl?: {
|
ssl?: boolean | ConnectionOptions
|
||||||
/**
|
|
||||||
* 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
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -874,9 +870,9 @@ export type ConfigModule = {
|
|||||||
*/
|
*/
|
||||||
plugins: (
|
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
|
resolve: string
|
||||||
/**
|
/**
|
||||||
* An object that includes options to be passed to the modules within the plugin.
|
* An object that includes options to be passed to the modules within the plugin.
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import {
|
|||||||
} from "../modules-sdk"
|
} from "../modules-sdk"
|
||||||
|
|
||||||
import type { RedisOptions } from "ioredis"
|
import type { RedisOptions } from "ioredis"
|
||||||
|
import { ConnectionOptions } from "node:tls"
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import type { InlineConfig } from "vite"
|
import type { InlineConfig } from "vite"
|
||||||
|
|
||||||
@@ -280,12 +281,7 @@ export type ProjectConfigOptions = {
|
|||||||
/**
|
/**
|
||||||
* Configure support for TLS/SSL connection
|
* Configure support for TLS/SSL connection
|
||||||
*/
|
*/
|
||||||
ssl?: {
|
ssl?: boolean | ConnectionOptions
|
||||||
/**
|
|
||||||
* 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
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user