Skip to content

Commit b3d2887

Browse files
committed
docs: separate prod Slack app and Resend webhook in the deploy steps
1 parent b2403c5 commit b3d2887

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎docs/guides/example-projects/resend-email-agent.mdx‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,12 @@ You need a Trigger.dev project, a Resend inbox on a verified domain, a Slack wor
132132
</Step>
133133
</Steps>
134134

135-
To deploy, run `npx trigger.dev@latest deploy` and set the same environment variables on your production environment. Production has its own `resend` and `slack` endpoints, with their own URLs and secrets: point a Resend webhook and a Slack app at the production URLs, and paste each one's signing secret into the matching production endpoint. Until then, the endpoint shows "Needs secret" on the Webhooks page.
135+
To deploy, run `npx trigger.dev@latest deploy`. Production has its own `resend` and `slack` endpoints, with their own URLs and secrets:
136+
137+
1. Create a second Slack app from the manifest with the production `slack` URL, install it, and use its bot token as `SLACK_BOT_TOKEN` in production. A Slack app sends its clicks and replies to one URL, so dev and production each need their own app.
138+
2. Point a Resend webhook at the production `resend` URL. Disable or delete the dev webhook, or use a separate inbox for dev, so the same email doesn't get drafted twice.
139+
3. Paste each signing secret into the matching production endpoint. Until then, the endpoint shows "Needs secret" on the Webhooks page.
140+
4. Set the other environment variables on your production environment as in dev.
136141

137142
## Relevant code
138143

0 commit comments

Comments
 (0)