Slack App Development with firebase cloud functions and bolt library

560 Views Asked by At

Bolt library doesn't work when deploying on Faas (Functions as a service) highlighted in the issue (https://github.com/slackapi/bolt-js/issues/361)

There is a workaround for AWS Lambda, as specified in the github issue. Is there a similar workaround when deploying on firebase cloud functions.

1

There are 1 best solutions below

0
On

Yes, you can use ExpressReceiver from @slack/bolt package. It works well with firebase functions context. Just like Express

import { App, ExpressReceiver } from '@slack/bolt'

const expressReceiver = new ExpressReceiver({...})
const app = new App({ receiver: expressReceiver })

export const myFunction = region('europe-west1')
  .https.onRequest(expressReceiver.app)