framework
от contentstack
Use when changing Next.js App Router structure, next.config.mjs, images, PostCSS, or Tailwind in kickstart-next-ssr.
npx skills add https://github.com/contentstack/kickstart-next-ssr --skill frameworkFramework (Next.js) – kickstart-next-ssr
When to use
- Editing routing, layout, or global styles
- Configuring image optimization or remote image hosts
- Changing Tailwind or PostCSS setup
Instructions
App Router
- Application lives under app/.
- app/layout.tsx is the root layout: sets metadata, imports app/globals.css, renders
children, and mounts components/ContentstackLivePreview.tsx so Live Preview initializes on the client after page content. - app/page.tsx is the default home route (async server component with Live Preview query handling).
Next configuration
- next.config.mjs exports
images.remotePatterns:- If
NEXT_PUBLIC_CONTENTSTACK_IMAGE_HOSTNAMEis set, that hostname is allowed. - Otherwise defaults allow
images.contentstack.ioand*-images.contentstack.com.
- If
- Prefer env-driven hostnames when stacks use custom image delivery domains.
Tailwind CSS v4
- postcss.config.mjs registers
@tailwindcss/postcss. - app/globals.css uses
@import "tailwindcss"and a@layer baseblock for border and body defaults compatible with v4. - package.json includes
tailwindcssand@tailwindcss/postcss.
Linting
npm run lintrunsnext lint, aligned with .eslintrc.json (Next core-web-vitals + TypeScript).