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