![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
fastify
C语言国粹
我很懒, 没有添加简介, 但是CSDN没有帮我写, 太可恶了!
展开
-
NestJs Fastify 配置文件上传
本来项目用的是 Nestjs + Fastify, 因项目需要文件上传功能, 一开始使用的是FileInterceptor 但是会报"TypeError: req.pipe is not a function" 这个错误. 偶然中在 stack overflow 找到了这个问题的解决方法.How to get rid of "TypeError: req.pipe is not a function" nestjs and fastify根据项目修改后的文件上传代码import { I...原创 2021-09-02 08:27:12 · 1324 阅读 · 0 评论 -
NestJs Fastify 配置静态目录
1. 安装 serve-staticnpm install --save serve-static2. 配置静态目录 const rootDir = join(__dirname, '..'); app.use('/public', serveStatic(join(rootDir, 'public')));原创 2021-09-02 08:16:58 · 839 阅读 · 0 评论