Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fastify support #609

Open
achmadk opened this issue Jan 17, 2020 · 4 comments
Open

fastify support #609

achmadk opened this issue Jan 17, 2020 · 4 comments

Comments

@achmadk
Copy link

achmadk commented Jan 17, 2020

In this video, firebase functions can successfully integrate with node.js application, specifically express framework. I want to use fastify framework because it has better performance than express.

Unfortunately, when I am using fastify, I got error like this:

TypeError: handler is not a function
    at cloudFunction (/srv/node_modules/firebase-functions/lib/providers/https.js:49:9)
    at /worker/worker.js:783:7
    at /worker/worker.js:766:11
    at _combinedTickCallback (internal/process/next_tick.js:132:7)
    at process._tickDomainCallback (internal/process/next_tick.js:219:9)
@google-oss-bot
Copy link
Collaborator

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

@laurentpayot
Copy link

@achmadk If Fastify doesn't work for you there are other (an maybe better) options than Fastify to replace express: https://github.com/fastify/benchmarks#benchmarks

@taeold
Copy link
Contributor

taeold commented Jun 26, 2021

Check out fastify/fastify#946 for instructions on how to get fastify working for Firebase Functions.

It's a bit unfortunate that you have to jump through hoops to get things working. I'll see if there are ways to improve fastify integration w/ Firebase functions...

@shriekdj
Copy link

@achmadk You should rename the issue to TypeError: handler is not a function when deploying on fastify

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants