Update api.ts

This commit is contained in:
Andras Bacsai
2022-08-11 09:34:52 +00:00
parent 9771bea60a
commit 5590acd182
5 changed files with 5 additions and 5 deletions

View File

@@ -24,7 +24,7 @@ export function getWebhookUrl(type: string) {
}
}
if (CODESANDBOX_HOST) {
const newURL = CODESANDBOX_HOST.replace(/\$PORT/,'3001')
const newURL = `https://${CODESANDBOX_HOST.replace(/\$PORT/,'3001')}`
if (type === 'github') {
return `${newURL}/webhooks/github/events`
}