code-review
tarafından contentstack
Pull-request checklist for security, Contentstack credentials, sanitization, and image configuration.
npx skills add https://github.com/contentstack/kickstart-next-ssg --skill code-reviewCode review – kickstart-next-ssg
When to use
- Before approving or merging a pull request
- Auditing changes that touch env vars, CMS integration, or user-facing HTML
Instructions
Secrets and configuration
- No real
.envvalues or delivery/preview tokens committed; use placeholders in docs only. - New
NEXT_PUBLIC_*keys are exposed to the browser—avoid putting sensitive server-only secrets behind that prefix.
Contentstack
- Token scopes and preview settings stay aligned with README.md (preview-capable delivery token, Live Preview environment).
Security and dependencies
- PRs trigger SCA (.github/workflows/sca-scan.yml); be explicit about new dependencies and known advisories.
- Public repos:
SECURITY.mdand license file expectations per .github/workflows/policy-scan.yml.
HTML and XSS
- Rich text and block copy use
dangerouslySetInnerHTMLonly afterisomorphic-dompurifyin pages/index.tsx; preserve or improve sanitization when changing markup.
Images
- New remote image domains must be reflected in next.config.mjs
images.remotePatterns(or env-driven hostname) sonext/imagedoes not break at runtime.
Quality
- Run
npm run lintlocally for substantive TS/React changes.