Skip to content

Commit

Permalink
fix: netlify proxy check
Browse files Browse the repository at this point in the history
Change-Id: I5e9d5ac3e910c5c816ed8b08a5a924a6f67064f3
  • Loading branch information
EryouHao committed May 17, 2022
1 parent 31e14d5 commit 6717c61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/plugins/deploys/netlify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6717c61

Please sign in to comment.