build-and-deploy
构建并部署此 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 --prodthenvercel 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 settingssrc/resources/content.js- Site content
- Blog posts go in
src/app/blog/posts/ - Projects go in
src/app/work/projects/