Total Pageviews

Tuesday, 11 August 2026

搭建基于nextjs的静态博客程序dd


首先fork此项目:https://github.com/dromzeh/dromzeh.dev ,我fork后,得到的项目地址是https://github.com/briteming/dd,修改仓库里的package.json里的next-mdx-remote的值为^6.0.0

访问https://github.com/briteming/dd/tree/main/src/posts,在此处新建源帖(即add file),我新建了源帖fh.mdx,内容为:

---
title: 战马
description: 这是一篇文章
date: 04-06-2026 18:41:00
slug: fh
---

此处写正文或html codes.

( 详见https://github.com/briteming/dd/blob/main/src/posts/fh.mdx?plain=1) 

然后,访问vercel.com/new ,导入项目
https://github.com/briteming/dd

  Build Command栏填入bun run build
 Install Command栏填入bun install

然后点击底部的deploy按钮,等待部署完成。部署完成后,我得到网址:

https://dd-inky-omega.vercel.app/


项目地址:
https://github.com/dromzeh/dromzeh.dev
https://github.com/briteming/dd

演示博客:

 https://dd-inky-omega.vercel.app/

 https://dd-inky-omega.vercel.app/posts/fh 能显示视频

 

No comments:

Post a Comment