首先fork此项目https://github.com/imyuanli/next-blog. 我fork后,得到的项目地址是
https://github.com/brightmann/inb .
删除仓库里的package-lock.json文件。编辑package.json文件,在第3行version的下一行加上:
"engines": { "node": "20.x" },
命令就用默认的npm install和npm run build
然后点击deploy,等待部署完成。 部署完成后,我得到的博客地址是https://inb-bm.vercel.app/ ,https://inb-bm.vercel.app/blog
访问https://github.com/brightmann/inb/tree/master/posts,在这里新建源帖(即add file),我新建了源帖love-net.mdx,内容为:
---
title: 情网
summary: "这是一篇文章"
date: 2026-06-26 20:35:00
tags: [misc1, misc2, misc3]
draft: false
---
此处写正文或html codes
( 详见https://github.com/brightmann/inb/blob/master/posts/love-net.mdx?plain=1)
约等2分钟,博客网站就会更新。
项目地址:
https://github.com/imyuanli/next-blog
https://github.com/brightmann/inb
https://github.com/imyuanli/next-blog/issues/31
演示博客:
https://inb-bm.vercel.app/blog,支持分页
https://inb-bm.vercel.app/blog/love-net ,能显示视频
( https://inb-tx3p.vercel.app/blog,我之前部署的。对应的仓库是https://github.com/briteming/inb .
https://inb-tx3p.vercel.app/blog/fh)
-----------------------------------
在vercel.com/new的console里,提示:2026-10-1日开始, vercel.com不再支持node 20.x版。如果在2026-10-1日或之后的时间部署本程序,可能会失败。到时再问问程序作者。
No comments:
Post a Comment