Skip to content

res.setHeader is not a function When i add new FastifyAdapter() #99

@samuelhalim1

Description

@samuelhalim1

Describe the bug
If i put new FastifyAdapter()
like this
const app = await NestFactory.create<NestFastifyApplication>( AppModule, new FastifyAdapter(), )

it will return error when i access localhost:3000

res.setHeader("Cache-Control", "no-cache, no-store, max-age=0, must-revalidate");
^
TypeError: res.setHeader is not a function

Is it can't support fastify adapter?
Because i serve static files from my server use the fastify adapter

Version

  • next.js: 13.0.6
  • nest: 9.0.0
  • nest-next: 10.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions