framework

作者: contentstack

Next.js Pages Router, static props, Tailwind 4, PostCSS, and image configuration for this app.

npx skills add https://github.com/contentstack/kickstart-next-ssg --skill framework

Framework – kickstart-next-ssg

When to use

  • Changing routing, data loading at build time, global styles, or optimized images
  • Clarifying App Router vs this repo’s Pages Router setup

Instructions

Next.js router

  • This project uses the Pages Router under pages/: pages/index.tsx, pages/_app.tsx, pages/_document.tsx.
  • Home page uses getStaticProps to fetch the / page entry at build time via getPage("/") from @/lib/contentstack.
  • Client-only Live Preview wiring (useEffect, ContentstackLivePreview.onEntryChange) lives in the same page component.

Styles

Images

  • next.config.mjs: images.minimumCacheTTL and remotePatterns for Contentstack assets (images.contentstack.io, *-images.contentstack.com, or NEXT_PUBLIC_CONTENTSTACK_IMAGE_HOSTNAME).

Runtime

  • npm run dev / npm run build / npm run start are the supported Next.js workflows (see AGENTS.md).

Not in this repo

  • No app/ directory—do not assume React Server Components or App Router conventions unless you migrate the project.

来自 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