dev-workflow
by contentstack
Local setup, Contentstack seeding, env vars, CI expectations, and PR ownership for kickstart-next.
npx skills add https://github.com/contentstack/kickstart-next --skill dev-workflowDev workflow – kickstart-next
When to use
- You are cloning the repo, running it locally, or opening a pull request.
- You need to know what runs in CI versus what you must run locally.
Instructions
Local setup
- Install dependencies with
npm install. - Copy
.env.exampleto.envand fill in values from your Contentstack stack (see product README.md). - Required variables use the
NEXT_PUBLIC_CONTENTSTACK_*prefix; see.env.examplefor names.
Contentstack stack
- Install the Contentstack CLI (
npm install -g @contentstack/cli), configure region if prompted, and log in (csdx auth:login). - Seed a compatible stack:
csdx cm:stacks:seed --repo "contentstack/kickstart-stack-seed" --org "<YOUR_ORG_ID>" -n "Kickstart Stack"(details in README.md). - Create a delivery token with preview scope and preview token enabled; enable Live Preview in the stack and point it at the Preview environment.
Run the app
- Development:
npm run dev, then openhttp://localhost:3000. - Production build locally:
npm run buildthennpm run start.
Lint
- Run
npm run lintbefore pushing; there is no GitHub Actions workflow that runs ESLint for this repo.
CI (GitHub Actions)
- .github/workflows/sca-scan.yml: Snyk and
contentstack/sca-policyon pull requests. - .github/workflows/policy-scan.yml: checks for
SECURITY.mdand license/year for public repos. - .github/workflows/issues-jira.yml: issue integration.
- There is no workflow that runs
npm run buildornpm run lintin CI; treat those as developer responsibilities unless a workflow is added later.
CODEOWNERS
- Default reviewers:
@contentstack/devex-pr-reviewers(see .github/CODEOWNERS). - Security workflows and related paths may require
@contentstack/security-admin.
Optional: Talisman
- A
.talismanrcfile exists; follow your org’s guidance if Talisman is used locally for secret scanning.