serveRoot doesn't work with fastify platform
ianzone opened this issue · 3 comments
ianzone commented
Is there an existing issue for this?
- I have searched the existing issues
Current behavior
the route set on serveRoot will return 404
Minimum reproduction code
https://github.com/ianzone/lambda-nestify/tree/serve-static
Steps to reproduce
- pnpm i
- pnpm run dev
- go to /client
Expected behavior
return the static site
Package version
3.0.1
NestJS version
9.3.9
Node.js version
v18.12.0
In which operating systems have you tested?
- macOS
- Windows
- Linux
Other
No response
yiqia commented
I also encountered this problem, and I used https://github.com/fastify/fastify-static solve
ianzone commented
I also encountered this problem, and I used https://github.com/fastify/fastify-static solve
that's included in my reproduction repo
Deleted user commented