Slack export
Posts a Block Kit message to a Slack channel via an Incoming Webhook.
Prerequisites
- Create an Incoming Webhook in your Slack workspace (app settings)
- Copy the webhook URL (
https://hooks.slack.com/services/…) - Optional: screenshot public URL — Storage — rendered as an
imageblock
Configuration
ts
export default defineNuxtConfig({
bugfreedback: {
export: {
provider: 'slack',
webhookUrl: process.env.BUGFREEDBACK_SLACK_WEBHOOK_URL || '',
channel: '#feedback', // optional override
},
},
})Environment variables
| Variable | Purpose |
|---|---|
BUGFREEDBACK_SLACK_WEBHOOK_URL | Incoming webhook URL |
Message format
Blocks include:
- Header — feedback title
- Section — description (mrkdwn)
- Image — screenshot (when URL present)
- Context — reporter email
Returns { id: 'slack-ok' } on success (Slack webhooks do not return a permalink).
Example
ts
export: {
provider: 'slack',
webhookUrl: 'https://hooks.slack.com/services/T000/B000/XXXXXXXX',
channel: '#product-feedback',
}TIP
For threaded replies or rich workflows, use the Webhook adapter to POST into your own Slack bot endpoint instead.