CSC Design System Skills & Best Practices
CS

Deployment

Build the application that is configured. Do not add a host that was not requested.

Written for a Next.js 15 App Router application. Guidance for Next.js 16 bundled docs or /_next/mcp does not apply to 15.5.27.

Next.js deploying

Rules

NX-DEP-001 required
Production build is next build

The build must finish before a deploy is described as ready.

NX-DEP-002 prohibited
Do not publish a package unless that was the task

Packing a library and publishing it are separate requests.

NX-DEP-003 recommended
Keep environment values on the host

Document the variable name. Do not write the value into the repo.

Correct
npm run build
Incorrect
npm publish --access public

Publishing is a separate, explicit request.

Checklist

  • next build completed.
  • No new host was configured.
  • No secret was added for the build.

AI instructions

You are implementing this practice in the current project. Do not install a design-system package and do not import one.
TASK: Apply Deployment.
Build the application that is configured. Do not add a host that was not requested.
APPLIES TO: Written for a Next.js 15 App Router application. Guidance for Next.js 16 bundled docs or /_next/mcp does not apply to 15.5.27.
RULES:
- NX-DEP-001 [required] Production build is next build. The build must finish before a deploy is described as ready.
- NX-DEP-002 [prohibited] Do not publish a package unless that was the task. Packing a library and publishing it are separate requests.
- NX-DEP-003 [recommended] Keep environment values on the host. Document the variable name. Do not write the value into the repo.
CORRECT:
npm run build
INCORRECT:
npm publish --access public
Publishing is a separate, explicit request.
CHECK:
- [ ] next build completed.
- [ ] No new host was configured.
- [ ] No secret was added for the build.
SOURCE: Next.js deploying https://nextjs.org/docs/app/getting-started/deploying
Build the interface with the project’s own markup. Match the documented colors and elements when a control is involved.
Do not upgrade Next.js to obtain bundled docs. Do not claim a WCAG audit. Do not add secrets.