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
Next configuration
- next.config.mjs exports
images.remotePatterns:
- If
NEXT_PUBLIC_CONTENTSTACK_IMAGE_HOSTNAME 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 registers
@tailwindcss/postcss.
- app/globals.css uses
@import "tailwindcss" and a @layer base block for border and body defaults compatible with v4.
- package.json includes
tailwindcss and @tailwindcss/postcss.
Linting
npm run lint runs next lint, aligned with .eslintrc.json (Next core-web-vitals + TypeScript).