这样搭建免费永久静态博客系统,速度飞快还有微信通知,解决写博痛点,人手一份博客新玩法。CNB Issue后台+EdgeOne pages部署,极爽且极具想象力!#2
❌ 构建失败: Command failed: pnpm build
ELIFECYCLE Command failed with exit code 1.
ELIFECYCLE Command failed with exit code 1.
root@cfa850cb11ad:/workspace#
请问这问题出在哪里啊?
重装之后貌似还是这个问题
▲ Next.js 15.4.0
Creating an optimized production build ...
✓ Compiled successfully in 7.0s
✓ Linting and checking validity of types
Build error occurred
[Error: Page "/posts/[slug]" is missing "generateStaticParams()" so it cannot be used with "output: export" config.]
ELIFECYCLE Command failed with exit code 1.
❌ 构建失败: Command failed: pnpm build
ELIFECYCLE Command failed with exit code 1.
ELIFECYCLE Command failed with exit code 1.
root@6bf596f9c891:/workspace#
重装之后貌似还是这个问题
▲ Next.js 15.4.0Creating an optimized production build ...
✓ Compiled successfully in 7.0s
✓ Linting and checking validity of typesBuild error occurred
[Error: Page "/posts/[slug]" is missing "generateStaticParams()" so it cannot be used with "output: export" config.]
ELIFECYCLE Command failed with exit code 1.❌ 构建失败: Command failed: pnpm build
ELIFECYCLE Command failed with exit code 1.
ELIFECYCLE Command failed with exit code 1.
root@6bf596f9c891:/workspace#
发现这个问题的原因是,fork后没有创建issue,所以内容为空,就出错了,你需要在你仓库中先创建1条issue @youshou
🌐我刚才删掉了原来fork的仓库,又重新fork了一遍,
🌐之后马上建立了一条issue,标题是“测试”,内容是“测试正文”这4个字
🌐然后EdgeOne的项目名是:cnb-issue-sites,API Token 是:fTb2oIeZ88tdSM9iWHQLbhJu3r32EdfxAFe792faqyI=
🌐预览页面是:https://landing-page-demo-xuxvkoan.edgeone.site?eo_token=8c6bdc2b3660e55748e0a30212963d86&eo_time=1750208119
🌐之后在aluoyoushou/02的密钥仓库创建:envs.yml
🌐里边的三行代码是:
# envs.yml
# 获取网址:https://console.tencentcloud.com/edgeone/pages?tab=api
EDGEONE_PAGES_API_TOKEN: fTb2oIeZ88tdSM9iWHQLbhJu3r32EdfxAFe792faqyI=
🌐该文件地址是:https://cnb.cool/taluoyoushou/02/-/blob/main/envs.yml
🌐之后回到仓库:taluoyoushou/blog
🌐在.cnb.yml文件中的:
push:
# 从私有仓库导入环境变量:
# 参考:https://docs.cnb.cool/en/build/env.html#importing-environment-variables
- runner:
cpus: 8
imports: https://cnb.cool/aii.mobi/envs/-/blob/main/edgeone-pages-token.yml
🌐改为了:
push:
# 从私有仓库导入环境变量:
# 参考:https://docs.cnb.cool/en/build/env.html#importing-environment-variables
- runner:
cpus: 8
imports: https://cnb.cool/taluoyoushou/02/-/blob/main/envs.yml
pnpm preview
root@0eeea039644f:/workspace# pnpm preview
cnb-static-blog@1.3.0 preview /workspace
pnpm run build:static && npx serve out
cnb-static-blog@1.3.0 build:static /workspace
node scripts/build.js
🚀 开始构建CNB静态博客...
🔧 环境变量配置:
BASE_URL: https://api.cnb.cool
REPO: taluoyoushou/blog
AUTH_TOKEN: 已设置
CNB_REPO_SLUG_LOWERCASE: taluoyoushou/blog
CNB_TOKEN: 已设置
NEXT_PUBLIC_SITE_URL: https://blog.kuai.host
🧹 清理之前的构建文件...
📦 检查依赖...
🔨 构建Next.js项目...
cnb-static-blog@1.3.0 build /workspace
next build
⚠ No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
Attention: Next.js now collects completely anonymous telemetry regarding usage.
This information is used to shape Next.js' roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://nextjs.org/telemetry
▲ Next.js 15.4.0
Creating an optimized production build ...
✓ Compiled successfully in 7.0s
✓ Linting and checking validity of types
✓ Collecting page data
✓ Generating static pages (9/9)
✓ Collecting build traces
✓ Exporting (3/3)
✓ Finalizing page optimization
Route (app) Size First Load JS
┌ ○ / 1.56 kB 254 kB
├ ○ /_not-found 1.01 kB 102 kB
├ ○ /about 193 B 104 kB
├ ○ /admin/config 4.38 kB 253 kB
├ ƒ /api/config 135 B 101 kB
├ ○ /posts 193 B 104 kB
└ ● /posts/[slug] 1.57 kB 254 kB
└ /posts/1
xsel binary and fallback didn't work. On Debian/Ubuntu you can install xsel with: sudo apt install xsel.
📝 写在前面
在这个注意力被严重挤占、长文阅读式微的时代,为什么我还要推荐大家搭建博客?
一个永久免费的发布后台 + 静态化博客网站 + 访问速度飞快 + 长期稳定在线 + 评论微信通知
这样的博客,值得我们重新造轮子!
🌟 为什么2025年还要写博客?
很多人问我,现在都AI时代了,还有必要写博客吗?
我的答案是:比任何时候都重要!
✅ 增加思考与自我反思 - 写作是最好的思考工具
✅ 巩固知识体系 - 这是最高效的学习方法
✅ 情绪发泄与减压 - 记录生活点滴,拒绝遗忘
✅ 提升表达能力 - 逻辑思维和书面表达双重提升
✅ 构建个人品牌 - 在AI时代链接更多机会
【视频说明】
先检验一下这个项目的静态博客的速度吧:https://cnb.cool/aii.mobi/blog
🚀 这个博客方案到底有多NB?
💰 永久免费,真正的0成本
⚡ 极速访问,静态化加持
🎨 高度定制,AI时代的优势
📱 微信通知,互动体验拉满
🛠️ 技术实现原理(小白也能懂)
🔧 后端:CNB Issue系统
🌐 前端:EdgeOne Pages部署
💾 存储:几乎无限制
🎯 解决了哪些痛点?
❌ 平台依赖性:更换平台时迁移成本高、难度大
✅ 完全开源:彻底摆脱平台束缚
❌ 平台稳定性:平台跑路风险,服务器宕机
✅ 多平台部署:GitHub、Cloudflare、Vercel都支持
❌ 定制化限制:无法满足个性化需求
✅ 高度定制:想改什么改什么,AI助力主题设计
❌ SEO优化困难:搜索引擎收录差
✅ SEO友好:静态网站,搜索引擎最爱
❌ 变现模式单一:广告收入微薄
✅ 个人品牌:构建影响力,链接更多机会
🎉 真实体验分享
📝 写作体验
在CNB的Issue系统中写博客,体验真的太棒了!
💬 互动体验
最让我惊喜的是评论通知功能:
🚀 部署体验
从写作到发布,全程自动化:
🎁 福利时间
🆓 如何获取?
📹 视频教程
我会出喂饭级操作部署视频,手把手教你搭建!
💡 额外福利
CNB平台新用户还能申请额外的存储空间和时长,记得7月前去申请!
具体请查看:#3
🔚 写在最后
在这个AI时代,拥有一个属于自己的博客比任何时候都重要。
不依赖平台、永久免费、极速稳定、高度定制
这样的博客,真的值得人手一份!
你还在犹豫什么?赶紧行动起来,搭建属于你自己的超NB博客吧!
👍 觉得有用记得点赞分享
💬 有问题欢迎评论区交流
🔔 关注我,更多干货持续分享
关键词: 免费博客、静态博客、CNB、EdgeOne Pages、个人博客、博客搭建、微信通知、SEO优化、开源博客