小编You*_*ass的帖子

NestjS - 在生产模式下找不到 Swagger ui css 资源

我正在开发一个 Nestjs 项目,我添加了 swagger 来显示我的端点,它在开发模式下工作得很好,但是一旦使用https://zeit.co/(现在)部署在生产中,端点页面就无法正确显示(缺少 css),我在网络选项卡中收到此错误:

/favicon-32x32.png:1 Failed to load resource: the server responded with a status of 404 ()
/favicon-16x16.png:1 Failed to load resource: the server responded with a status of 404 ()
swagger-ui.css:1 Failed to load resource: the server responded with a status of 404 ()
Run Code Online (Sandbox Code Playgroud)

https://i.stack.imgur.com/T9IQv.png

谢谢。

css express swagger-ui nestjs nestjs-swagger

7
推荐指数
1
解决办法
3568
查看次数

标签 统计

css ×1

express ×1

nestjs ×1

nestjs-swagger ×1

swagger-ui ×1