访问https://github.com/vercel/examples/tree/main/solutions/blog,点击里面的deploy按钮,或者访问地址https://vercel.com/new/clone?repository-url=https://github.com/vercel/examples/tree/main/solutions/blog&project-name=blog&repository-name=blog,打开的页面显示这是私有仓库(访问该地址前,先登录vercel.com),可把它设为公开:
并把仓库名称重命名为vb-ym,然后点击create按钮,就开始部署该博客了,部署完成后,我得到网址https://vb-ym.vercel.app/因为刚才,我把vercel.com在我的github账号briteming里创建的私有仓库改为了公开,所以任何人都可访问https://github.com/briteming/vb-ym/,然后我们访问https://github.com/briteming/vb-ym/tree/main/app/blog/posts,在此新建源帖test.mdx ,内容为:
---
title: '测试'
publishedAt: '2025-12-06'
summary: '这是一篇文章'
---
这是测试1.
新建源帖后,博客网站2分钟内就会更新。
项目地址:
https://github.com/vercel/examples/tree/main/solutions/blog
https://github.com/briteming/vb-ym
演示博客:https://vb-ym.vercel.app/

No comments:
Post a Comment