build-and-deploy

majiayu000 的头像作者 majiayu000

构建并部署此 Next.js 组合应用程序。在构建、部署或准备生产项目时使用。

📖 中文导读:构建并部署此 Next.js 组合应用程序。在构建、部署或准备生产项目时使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: build-and-deploy description: Build and deploy this Next.js portfolio application. Use when building, deploying, or preparing the project for production.

Build and Deploy Magic Portfolio

CRITICAL: For Vercel, use vercel build --prod then vercel deploy --prebuilt --prod.

Workflow

1. Install Dependencies

npm install

2. Build

npm run build

3. Deploy

Vercel (Recommended):

vercel pull --yes -t $VERCEL_TOKEN
vercel build --prod -t $VERCEL_TOKEN
vercel deploy --prebuilt --prod --yes -t $VERCEL_TOKEN

Netlify:

netlify deploy --prod --dir=.next

Tech Stack

  • Framework: Next.js 16
  • UI: Once UI + React 19
  • Styling: Sass
  • Content: MDX for blog posts and projects
  • Language: TypeScript

Important Notes

  • Requires Node.js v18.17+
  • Configuration files:
    • src/resources/once-ui.config.js - Theme and UI settings
    • src/resources/content.js - Site content
  • Blog posts go in src/app/blog/posts/
  • Projects go in src/app/work/projects/