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
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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