首先fork此项目:https://github.com/pacocoursey/paco,我fork后,得到的项目地址是
https://github.com/briteming/paco,然后编辑package.json,修改"eslint"的值为"^7.0.0"
访问https://github.com/briteming/paco/tree/master/posts,在此处新建源帖(即add file),我新建了源帖fh.md,内容为:
---
title: 战马
description: 这是一篇文章
slug: fh
date: May 26, 2026 15:20
---
此处写正文或html codes.
( 详见https://github.com/briteming/paco/blob/master/posts/fh.md?plain=1)
然后,访问vercel.com/new ,导入项目https://github.com/briteming/paco
Build Command栏填入npm run build
Install Command栏填入npm install --force
然后, 添加环境变量NODE_OPTIONS ,变量的值为 --openssl-legacy-provider
然后点击底部的deploy按钮,等待部署完成。部署完成后,我得到网址:
https://paco-kohl.vercel.app/
项目地址:https://github.com/pacocoursey/paco
https://github.com/briteming/paco
演示博客:
https://paco-kohl.vercel.app/
https://paco-kohl.vercel.app/blog
https://paco-kohl.vercel.app/blog/fh 能显示视频.
No comments:
Post a Comment