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
+4 -12

No files matched your search

+2 -6
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
}
}
@@ -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
}
}