From 6717c613ab278ef49c3af8d6c63a61c4d7b0a87c Mon Sep 17 00:00:00 2001 From: EryouHao Date: Tue, 17 May 2022 21:36:38 +0800 Subject: [PATCH] fix: netlify proxy check Change-Id: I5e9d5ac3e910c5c816ed8b08a5a924a6f67064f3 --- src/server/plugins/deploys/netlify.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/plugins/deploys/netlify.ts b/src/server/plugins/deploys/netlify.ts index c06c1307..0d83c802 100644 --- a/src/server/plugins/deploys/netlify.ts +++ b/src/server/plugins/deploys/netlify.ts @@ -29,7 +29,7 @@ export default class NetlifyApi extends Model { async request(method: 'GET' | 'PUT' | 'POST', endpoint: string, data?: any) { const endpointUrl = this.apiUrl + endpoint.replace(':site_id', this.siteId) const { setting } = this.db - const proxy = setting.enabledProxy ? { + const proxy = setting.enabledProxy === 'proxy' ? { host: setting.proxyPath, port: Number(setting.proxyPort), } : undefined