Starter template for Stackwright projects using Next.js Pages Router.
This template is used automatically by the Stackwright CLI:
npx @stackwright/cli scaffold my-projectYou can also use it directly via GitHub's "Use this template" button.
pages/_app.tsx— App root with Stackwright component registrationpages/index.ts— Root page usingDynamicPagewithgetStaticPropspages/[slug].tsx— Dynamic slug-based routingnext.config.js— Pre-configured withcreateStackwrightNextConfig().vscode/settings.json— YAML schema validation for Stackwright files.env.local.example— Debug flag configuration.gitignore— Next.js + Stackwright ignores
The CLI replaces these placeholders during scaffolding:
{{projectName}}— npm package name{{siteTitle}}— Site title for app bar and browser tab{{year}}— Current year for copyright notices
The CLI generates additional files via Zod schema introspection:
stackwright.yml— Site configuration (theme, navigation, app bar, footer)pages/content.yml— Root page contentpages/getting-started/content.yml— Getting started guidepackage.json— Dependencies and scriptstsconfig.json— TypeScript configuration