diff --git a/packages/uni-cloud/src/uni.plugin.ts b/packages/uni-cloud/src/uni.plugin.ts index e9db85dfb063f34e7272efaf8aae96059aded0c6..7f6b04564b4403ccc8fd5afc361e35d7c63d2162 100644 --- a/packages/uni-cloud/src/uni.plugin.ts +++ b/packages/uni-cloud/src/uni.plugin.ts @@ -184,7 +184,9 @@ export default () => [ const isSecureNetworkEnabled = isEnableSecureNetwork(inputDir, platform) return { define: { - 'process.env.UNI_SECURE_NETWORK': isSecureNetworkEnabled, + 'process.env.UNI_SECURE_NETWORK_ENABLE': isSecureNetworkEnabled, + 'process.env.UNI_SECURE_NETWORK_CONFIG': + process.env.UNI_SECURE_NETWORK_CONFIG, }, } },