Next.js Tooling

Ecosystem optimization, deployment, and developer flow.

majiayu000 d48ba8c 2 files · 2.0 KB Updated 567 repo stars

File contents

Next.js Tooling

Priority: P2 (MEDIUM)

Structure

project/
├── .next/              # Build artifacts
├── next.config.js      # Advanced config
└── .eslintrc.json      # Next plugins

Implementation Guidelines

  • Turbopack: Enable --turbo for development speed improvements.
  • Standalone Build: Use output: 'standalone' for Docker optimization.
  • CI Linting: Run next lint and tsc on every pull request.
  • Telemetry: Opt-out of global tracking for privacy (next telemetry disable).
  • Caching: Configure CI to cache .next/cache for faster builds.
  • Deployment: Prefer Vercel for automation or Docker for self-hosting.

Anti-Patterns

  • Legacy Dev: No npm run start for dev: Use next dev.
  • Large Bundles: No missing source-maps: Analyze via @next/bundle-analyzer.
  • Missing Plugins: No custom lint rules: Use eslint-plugin-next.
  • Production Logs: No console.log in prod: Use structured loggers.

References

  • CI/CD & Deployment Guide

majiayu000/claude-skill-registry-data/tree/main/development/tooling-hoangnguyen0403-agent-skills-standar-7 commit d48ba8c9ec

Frequently asked questions

npx skillmds add majiayu000/next-js-tooling