dev-workflow
द्वारा contentstack
Setup, scripts, environment variables, and pull-request CI expectations for this repo.
npx skills add https://github.com/contentstack/kickstart-next-ssg --skill dev-workflowDev workflow – kickstart-next-ssg
When to use
- Onboarding or reproducing a local run
- Adding or changing npm scripts
- Understanding what runs on pull requests (vs local build)
Instructions
Prerequisites
- Node.js compatible with Next.js 16 (use a current LTS)
- npm (lockfile:
package-lock.json)
First-time setup
- Clone the repo and run
npm install. - Copy or create a
.env(or.env.local) using the variables documented in the root README.md and summarized in AGENTS.md. - Seed a Contentstack stack with the CLI flow in README.md (
contentstack/kickstart-stack-seed) if you do not already have matching content types and entries.
Scripts (from package.json)
npm run dev— Next.js development server (default port 3000).npm run build— production build.npm run start— serve the production build (run afterbuild).npm run lint— ESLint over.tsand.tsx(eslint . --ext .ts,.tsx).
Pull-request automation
- SCA: .github/workflows/sca-scan.yml runs Snyk on Node and
contentstack/sca-policy; does not replace localnpm run lintornpm run build. - Policy: .github/workflows/policy-scan.yml checks
SECURITY.mdand license files for public repositories. - Issues: .github/workflows/issues-jira.yml creates Jira tickets from new GitHub issues (repository automation).
Branch naming is not enforced in this repository; follow your team’s Git conventions.