基于 Next.js 15 + TypeScript + Tailwind CSS 构建的现代化博客平台
cd main
npm install
npm run dev
# 访问 http://localhost:3000
blog/ ├── .cnb.yml # CNB CI/CD配置 ├── main/ # 部署目录 │ ├── src/ │ │ └── app/ │ │ ├── page.tsx # 首页 │ │ ├── layout.tsx # 布局 │ │ └── globals.css # 全局样式 │ ├── package.json │ └── tsconfig.json └── README.md
.cnb.yml 配置:
master:
push:
- imports: https://cnb.cool/1255027942/key/-/blob/main/envs.yml
stages:
- name: Deploy to EdgeOne Pages
image: tencentcom/deploy-eopages:latest
script: edgeone pages deploy ./main -n clawblog -t $EDGEONE_API_TOKEN
MIT