dev-workflow

作者: contentstack

在本地设置仓库、运行 npm 脚本或了解 kickstart-next-ssr 的 CI 和贡献流程时使用。

npx skills add https://github.com/contentstack/kickstart-next-ssr --skill dev-workflow

Dev workflow – kickstart-next-ssr

When to use

  • Cloning the repo and running the app for the first time
  • Running build, dev server, or lint
  • Knowing what GitHub Actions do (and do not do) for this project

Instructions

Prerequisites

  • Node.js and npm (versions aligned with your org; this repo uses Next.js 16 and React 19 per package.json)
  • A Contentstack stack, delivery/preview tokens, and .env values as described in README.md

Setup

  1. Clone: repository URL is https://github.com/contentstack/kickstart-next-ssr (see package.json repository.url).
  2. npm install
  3. Copy or create .env / .env.local with the NEXT_PUBLIC_* variables from README.md; never commit secrets.
  4. npm run dev — serves the App Router app with hot reload.

Common commands

ScriptPurpose
npm run devNext.js development server
npm run buildProduction build
npm startProduction server (after build)
npm run lintESLint via next lint

CI and automation

There is no workflow in this repo that runs npm ci, npm run build, or npm run lint by default. Use those commands locally before pushing when you change application code.

Pull requests

Follow your organization’s branch and review rules. Keep changes scoped; update README.md if env vars or setup steps change.

来自 contentstack 的更多技能

brand-kit-assistant
contentstack
就Contentstack Brand Kit的概念、设置、治理及品牌化AI生成向用户提供建议。将API相关任务路由到正确的Brand Kit功能或…
official
cms-assets
contentstack
为开发人员提供关于在Contentstack中组织、交付和转换资产的建议。涵盖文件夹结构、Image Delivery API转换、发布……
official
cms-branches-aliases
contentstack
指导开发者使用Contentstack分支进行隔离的内容开发,并使用别名实现零停机的内容部署。涵盖分支策略、…
official
cms-data-modeling-best-practices
contentstack
指导开发者在Contentstack中使用最简单可复用的结构来建模内容。该技能解释了何时使用内容类型、引用、全局…
official
cms-entries
contentstack
为开发者提供关于查询、本地化、版本管理、发布和构建Contentstack条目的建议,以实现高效交付。重点关注CDA的使用、引用……
official
cms-environments-publishing
contentstack
为开发人员提供关于配置环境、发布内容、使用交付和预览令牌、利用Sync API以及了解CDN和…的建议
official
cms-live-preview-visual-builder-support-assistant
contentstack
诊断并指导Contentstack Live Preview和Visual Builder的实施。追踪预览上下文,识别损坏的契约,并推荐…
official
cms-localization
contentstack
为开发人员提供Contentstack本地化建议:语言设置、回退链、本地化与未本地化条目、不可本地化字段及多语言环境…
official