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
2025-02-11 09:52:33 +01:00
committed by GitHub
parent 244cd714b2
commit cf788ec49e
2 changed files with 10 additions and 18 deletions
+2 -6
View File
@@ -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
}
} }
} }
@@ -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
}
} }
} }