umijs / umi-blog-example

An example of blog website built with Umi.js and new API route feature in Umi 4.
https://umijs.org/docs/tutorials/blog
37 stars 33 forks source link

示例博客首页无法加载? #2

Closed wenyuanw closed 2 years ago

wenyuanw commented 2 years ago

部署在 Vercel 上的示例博客无法正常显示? Serverless Function 无法正常运行。

image

我自己尝试的时候也是无法成功,不知道是什么原因呢

yuaanlin commented 2 years ago

@wenyuanw 问题解决了吗?

wenyuanw commented 2 years ago

本地没什么 dev 运行没有什么大问题,不过现在部署到 vercel 总是失败😭 @ken20001207 image

yuaanlin commented 2 years ago

本地没什么 dev 运行没有什么大问题,不过现在部署到 vercel 总是失败😭

在 Vercel 看一下 Serverless Function 有没有什么报错日志

wenyuanw commented 2 years ago

本地没什么 dev 运行没有什么大问题,不过现在部署到 vercel 总是失败😭

在 Vercel 看一下 Serverless Function 有没有什么报错日志

现在是还没能成功部署,环境变量已经设置了

yuaanlin commented 2 years ago

@wenyuanw 能发一下你的仓库地址吗?我部署看看哪里出问题了

wenyuanw commented 2 years ago

@ken20001207 这个仓库: https://github.com/wenyuanw/umi4-blog-example

wenyuanw commented 2 years ago

我基于您的仓库改动并部署之后出现了跟您现在部署的页面一样的情况,我的部署

image

yuaanlin commented 2 years ago

@wenyuanw 现在的示例博客进不去是因为之前太久没人访问所以数据库服务被暂停了。

你能加一下我钉钉吗?方便排查一下问题。

IMG_1658

yuaanlin commented 2 years ago

@wenyuanw 在 .npmrc 文件加入 node-linker=hoisted 这一行然后 Vercel 清除缓存重新构建试试