From 11582ef9063adcd0cb0e611ed0769073f78648b3 Mon Sep 17 00:00:00 2001 From: Ethan Zimbelman Date: Tue, 24 Oct 2023 10:20:35 -0700 Subject: [PATCH] only specify outgoing domains for the local app --- manifest.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/manifest.ts b/manifest.ts index 554b888..0bcf9dc 100644 --- a/manifest.ts +++ b/manifest.ts @@ -7,7 +7,7 @@ import UserArray from "./types/user_array.ts"; /** * The app manifest contains the app's configuration. This * file defines attributes like app name and description. - * https://api.slack.com/future/manifest + * https://api.slack.com/automation/manifest */ export default Manifest({ name: "Rotation App", @@ -15,7 +15,9 @@ export default Manifest({ "Create and manage an ordered work rotation and list of assignees", icon: "assets/icon.png", workflows: [ManageRotationWorkflow, AdvanceRotationWorkflow], - outgoingDomains: ["cdn.skypack.dev"], + outgoingDomains: Deno.env.get("SLACK_ENV") === "deployed" + ? [] + : ["cdn.skypack.dev"], types: [UserArray], datastores: [RotationDatastore], botScopes: [