chore: Remove DEPLOYMENT and SUBDOMAINS_ENABLED (#5742)

This commit is contained in:
Tom Moor
2023-08-28 20:39:58 -04:00
committed by GitHub
parent 7725f29dc7
commit 30a4303a8e
35 changed files with 136 additions and 135 deletions

View File

@@ -599,7 +599,7 @@ export default class DeliverWebhookTask extends BaseTask<Props> {
});
status = response.ok ? "success" : "failed";
} catch (err) {
if (err instanceof FetchError && env.DEPLOYMENT === "hosted") {
if (err instanceof FetchError && env.isCloudHosted) {
Logger.warn(`Failed to send webhook: ${err.message}`, {
event,
deliveryId: delivery.id,