You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Vercel生产环境无法加载Swagger UI问题求助

问题描述

我用ES6规范编写代码,将.yaml文件转换为JS格式后,本地通过vercel-dev命令运行时Swagger UI可以正常访问,但部署到Vercel生产环境(vercel-prod)后,首页能正常打开,/api-docs路由下的Swagger UI却无法加载,报错如下:

the stylesheet https://school-management-system-rest-api.vercel.app/api-docs/swagger-ui.css was not loaded because its MIME type, "text/html", is not "text/css". api-docs
Loading failed for the

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.28 15:56:28