serve-static
serve-static copied to clipboard
serveRoot doesn't work with fastify platform
Is there an existing issue for this?
- [X] 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
- [X] Linux
Other
No response
I also encountered this problem, and I used https://github.com/fastify/fastify-static solve
I also encountered this problem, and I used https://github.com/fastify/fastify-static solve
that's included in my reproduction repo
@ianzone I think what @yiqia meant is that they use that package directly rather than via this nest module.