Skip to content

Add compatibility with the @nestjs/fastify-adaptor #250

Open
@Jefftopia

Description

@Jefftopia

I'm submitting a...


[ ] Regression 
[ X] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

I am not sure if this is a bug, or a feature request.

Current behavior

  1. git clone https://github.com/TrilonIO/nestjs-azure-functions - the azure func demo app.
  2. npm install --save @nestjs/platform-fastify
  3. npm install the rest.
  4. Swap the default express adaptor with the fastify one.
  5. Make sure you have Azure's func cli installed, then npm run build && func host start.
  6. Open a valid endpoint. In this case, the url logged when func host start has completed and the server is running.

Expected behavior

Fastify should have the same 200 success response as Express adaptor.

Minimal reproduction of the problem with instructions

See instructions above.

What is the motivation / use case for changing the behavior?

I'd like to use Fastify with Azure functions as it's lighter weight and faster.

Environment

MacOS Catalina
NodeJS: 12.16.3

NestJS common, core: 7.0.8
NestJS platform-fastify 7.0.11
@nestjs/azure-func-http: 0.5.0
@azure/functions: 1.0.3

Others:
npm
VSCode
zsh

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions