Comments (4)
@gadzan 是的 Vercel 似乎会有 cache 不会按照 semver 找到最新,所以用之前的模板创建的似乎都有点问题,我这边之前已经将模板的依赖版本号升级到最新了,之后创建的话不会有这个问题了。
from waline.
LEAN_SERVER
域名是 LeanCloud 后面的 API 域名,不是 Vercel 的域名。
from waline.
@gadzan 如果你是使用了 LeanCloud 国内版的话,需要设置 LEAN_SERVER
值是你在 leancloud 后台绑定的备案域名。如果你是使用的 LeanCloud 国际版的话,是不需要绑定这个环境变量的,如果有的话你的这个值如楼上所说是有问题的可能也会有问题。
如果你是没有配置过 LEAN_SERVER
而且用的是 LeanCloud 国际版还出现了这个问题,可以看一下你的仓库的这个文件 https://github.com/lizheming/waline/blob/master/example/package.json#L5 @waline/vercel
应该是 0.5.0
的,如果不是你改成这个应该就可以了。
https://leancloud.cn 是 LeanCloud 国内版,https://leancloud.app 是 LeanCloud 国际版。
from waline.
感谢两位大佬, 原因是@waline/vercel的版本太低了, 之前用的是0.1.0, 现在改成0.5.0就可以了. 可能是淘宝源默认安装的是0.1.0的.
我用的是国内版, 域名也绑定了, 之前以为LEAN_SERVER的值不对, 一直在换. 所以感觉是不是我理解错了, 误认为应该是vercel.app的域名.
域名改回绑定的域名, 依赖升到最新, 问题就解决了, 谢谢.
from waline.
Related Issues (20)
- [Bug]: 评论获取有post和get报错 || [Bug]: There are post and get errors in comment acquisition HOT 2
- [Bug]: Auto publish is not working HOT 1
- [Feature]: 提供 Event 监听触发 HOT 5
- [Bug]: forbidden HOT 4
- [Bug]: vercel 部署1.31 新版本报错 || [Bug]: vercel deployment 1.31 new version reports an error HOT 1
- [Bug]: 无法发表评论,报错提示 Load failed || [Bug]: Unable to comment, error message Load failed HOT 3
- [Bug]: 邮箱无法发送,无法登录 || [Bug]: The mailbox cannot be sent and cannot be logged in HOT 7
- [Bug]: 从博客首页访问文章后页面滚动条并不是在最顶部,去除底部评论插件Waline后发现正常。 || [Bug]: After accessing the article from the blog homepage, the page scroll bar is not at the top. After removing the bottom comment plug-in Waline, it is found to be normal. HOT 4
- [Bug]: 发布评论提示"undefined [404 GET www.yuanning0818.tk/1.1/classes/Comment]" || [Bug]: Publish comment prompt "undefined [404 GET www.yuanning0818.tk/1.1/classes/Comment]" HOT 1
- [Feature]: 是否能自定义图床 || [Feature]: Can you customize the picture bed HOT 2
- [Feature]: 单一部署支持多个域名或项目 || [Feature]: Single deployment supports multiple domain names or projects HOT 3
- [Bug]: 社交登录账户无法发送邮件 || [Bug]: social login account cannot send email HOT 4
- [Bug]: 评论通知无反应 || [Bug]: Comment notification does not respond HOT 1
- Vercel基于MongoDB Alias 部署,环境变量需要配置哪些?文档并没有提到! || Vercel is deployed based on MongoDB Alias, what environment variables need to be configured? The docs don't mention it! HOT 1
- [Bug]: 博主回复其他人时自己也会收到邮件通知 || [Bug]: Bloggers will also receive email notifications when they reply to others HOT 2
- [Bug]: || [Bug]: HOT 7
- [Feature]: Edge function & KV storge HOT 5
- [Feature]: deta部署Waline缺少变量 || [Feature]: Deta deployment Waline missing variables HOT 1
- [Bug]: 页面访问量没更新 || [Bug]: Page views are not updated HOT 2
- [Bug]: Cloudflare Turnstile 报错 || [Bug]: Error reported by Cloudflare Turnstile
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from waline.