web/src/features/slack/README.md
This guide walks you through setting up and testing the Langfuse Slack integration for local development.
app_manifest.json from this directory and paste it into the manifest editorweb/public/icon1024.png as your app's avataropenssl rand -base64 32 | tr -d "=+/" | cut -c1-32 to use as state secret.env file:
SLACK_CLIENT_ID=your_client_id_here
SLACK_CLIENT_SECRET=your_client_secret_here
SLACK_STATE_SECRET=your_state_secret_here
The Slack OAuth flow requires HTTPS. Set up local certificates:
# Install mkcert
brew install mkcert
# Install the local CA
mkcert -install
# Generate certificates for localhost
mkcert localhost 127.0.0.1
# Move certificates to web directory
mv localhost+1*.pem web/
From the repository root, run:
pnpm run dev:https
This starts the Next.js development server with HTTPS enabled on https://localhost:3000.
https://localhost:3000/api/public/slack/oauthweb/ directory.env file is in the correct location and contains the Slack credentialsIf you encounter SSL certificate warnings in your browser:
mkcert -install to install the local CAhttps://localhost:3000 directly and accept the certificateThe Slack integration provides:
/api/public/slack/install/api/public/slack/oauthSlackService in the shared packageFor production deployment, ensure: