SKILL.md
Framework (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/).
- [app/layout.tsx](../../app/layout.tsx) is the root layout: sets metadata, imports [app/globals.css](../../app/globals.css), renders
children, and mounts [components/ContentstackLivePreview.tsx](../../components/ContentstackLivePreview.tsx) so Live Preview initializes on the client after page content. - [app/page.tsx](../../app/page.tsx) is the default home route (async server component with Live Preview query handling).
Next configuration
- [next.config.mjs](../../next.config.mjs) exports
images.remotePatterns:
- If NEXTPUBLICCONTENTSTACKIMAGEHOSTNAME is set, that hostname is allowed. - Otherwise defaults allow images.contentstack.io and *-images.contentstack.com.
- Prefer env-driven hostnames when stacks use custom image delivery domains.
Tailwind CSS v4
- [postcss.config.mjs](../../postcss.config.mjs) registers
@tailwindcss/postcss. - [app/globals.css](../../app/globals.css) uses
@import "tailwindcss"and a@layer baseblock for border and body defaults compatible with v4. - [package.json](../../package.json) includes
tailwindcssand@tailwindcss/postcss.
Linting
npm run lintrunsnext lint, aligned with [.eslintrc.json](../../.eslintrc.json) (Next core-web-vitals + TypeScript).