frontend-nextjs-vercel
/frontend-nextjs-vercel
Use when building a web UI with React/Next.js and deploying it on Vercel — project setup, App Router patterns, performance basics, env vars, preview and production deploys.
- Author
- lukashouthoofd ↗
- Repository
- cenekathon ↗
- Licence
- MIT
- Last repository change
- 04.11.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 04.11.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Use when building a web UI with React/Next.js and deploying it on Vercel — project setup, App Router patterns, performance basics, env vars, preview and production deploys.
Original author description
Use when building a web UI with React/Next.js and deploying it on Vercel — project setup, App Router patterns, performance basics, env vars, preview and production deploys.
How it works
- Setup (5 min)
- Structure
- Performance basics (cheap wins)
- UX that demos well
- Deploy
SKILL.md preview
---
name: frontend-nextjs-vercel
description: Use when building a web UI with React/Next.js and deploying it on Vercel — project setup, App Router patterns, performance basics, env vars, preview and production deploys.
---
# Frontend: Next.js + Vercel
## Setup (5 min)
```bash
npx create-next-app@latest web --ts --tailwind --app --eslint --use-npm --yes
cd web && npm run dev
```
Add UI kit only if needed: `npx shadcn@latest init` then `npx shadcn@latest add button card input` (copy-in components, no lock-in).
## Structure
- `app/page.tsx` landing/demo screen; `app/api/<name>/route.ts` for server endpoints (keeps API keys server-side); `components/`; `lib/` (llm client, helpers).
- **Server Components by default.** Add `"use client"` only for state, effects, or event handlers. Keep client components small and leaf-level.
- Fetch data on the server (`async` page) and pass props; use Route Handlers or Server Actions for mutations.
- Secrets only via `process.env.X` in server code. Only `NEXT_PUBLIC_*` reaches the browser — never put a key there.
## Performance basics (cheap wins)
- Avoid request waterfalls: start independent fetches together with `Promise.all`.
- `next/image` for images, `next/font` for fonts; lazy-load heavy components with `next/dynamic`.
- Stream slow AI/data parts with `<Suspense fallback={…}>` so the page shows instantly.
- Don't import big libraries into client components; no barrel-file mega imports.
- Deeper guidance: `vercel-react-best-practices`, `vercel-composition-patterns`; deploying: `deploy-to-vercel`.
## UX that demos well
Loading, empty and error states for every async view; disable buttons while pending; show results progressively. See `ui-polish`.
## Deploy
```bash
npm i -g vercel # once
vercel login # humans only — never script credentials
vercel link # from the web/ folder; set Root Directory if in a monorepo
vercel env add AI_API_KEY production # (and preview); mirror .env.example
vercel # preview URL
vercel --prod # production URL
```
Or connect the GitHub repo in the Vercel dashboard so every merge to `main` deploys and every PR gets a preview URL. Remember function timeouts on the free tier: keep AI routes streaming or under ~10–60 s.
**Done when:** `npm run build` passes locally, the Vercel URL works in an incognito window, and no secret is in the client bundle (`git grep NEXT_PUBLIC`).
Versions
The database has no other skills named frontend-nextjs-vercel.
Database snapshot: 13.11.2026 · package version 9e13ba6e6801 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Similar skills
- 100nextjs
Assists with building production-grade React applications using Next.js 16. Use when working with the App Router, Server Components, Server Actions, the proxy file (formerly middleware), Cache Components, or deploying to Vercel or self-hosted environments. Trigger words: nextjs,… - 100deploy-to-vercel
Deploys apps and websites to Vercel and manages them: link the project, ship preview or production deploys, use a VERCEL_TOKEN when login is impossible, set env vars, inspect builds and logs, add domains. Use when the user says deploy my app, deploy to Vercel, push this live,… - 90react-nextjs
Build and review React and Next.js (App Router) apps: components, server vs client, data fetching, state, forms, performance, testing. Use when the chosen frontend stack is React or Next.js. - 100react-frontend
React, TypeScript, and Next.js patterns for frontend development. Use when building React components, managing state, fetching data, optimizing performance, or working with Next.js App Router. Covers React 18-19, hooks, Server Components, and type-safe patterns. - 90nextjs-react-expert
Advanced Next.js (App Router) and React engineering for architecture, server/client boundaries, data fetching, caching, performance, and production operations. Use when building, reviewing, or debugging modern React/Next.js applications. - 100nextjs-developer
Use when building Next.js 14+ applications with App Router, server components, or server actions. Invoke to configure route handlers, implement middleware, set up API routes, add streaming SSR, write generateMetadata for SEO, scaffold loading.tsx/error.tsx boundaries, or deploy…