We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
您好,我按照您的教程自己也部署了一套,页面正常,但是api请求不正常,我也有在vercel上正确配置环境变量。这是我部署的地址:https://cp-blog-umi.vercel.app/ ,当我进行api请求时返回的是一个html文档, 这种情况应该是Serverless没有成功部署,尚不清楚出错原因,我的项目地址是https://github.com/XiaoPingzi-Anhui/cp-blog-umi ,这个项目在我本地是正常运行的,本地请求正常,大佬们看看哪里出了问题,如何让部署在vercel上的项目请求正常
The text was updated successfully, but these errors were encountered:
我知道是什么原因了,本地在根目录生成的api文件没上传到仓库,vercel没检测到。我看作业在gitignore屏蔽了/api,我也照做了,还以为/api文件不需要上传,vercel会根据umi框架自动生成……,建议作者在gitignore文件备注清楚一点,避免小白踩坑
Sorry, something went wrong.
按道理 /api 是不需要上传到仓库的,/api 目录会在 Vercel 运行 build 命令的时候会生成并检测到才对
/api
No branches or pull requests
您好,我按照您的教程自己也部署了一套,页面正常,但是api请求不正常,我也有在vercel上正确配置环境变量。这是我部署的地址:https://cp-blog-umi.vercel.app/ ,当我进行api请求时返回的是一个html文档,
这种情况应该是Serverless没有成功部署,尚不清楚出错原因,我的项目地址是https://github.com/XiaoPingzi-Anhui/cp-blog-umi ,这个项目在我本地是正常运行的,本地请求正常,大佬们看看哪里出了问题,如何让部署在vercel上的项目请求正常
The text was updated successfully, but these errors were encountered: