-
Create next-app
foo
app:pnpm create next-app --ts apps/foo
-
Separate
foo
code fromfoo
configuration:# Create src folder mkdir apps/foo/src # Move `pages` and `styles` to `src` folder mv apps/foo/pages apps/foo/src mv apps/foo/styles apps/foo/src
-
Add scripts
// apps/foo/package.json "scripts": { ... "clean": "rimraf .next .build .coverage tsconfig.tsbuildinfo", "export": "pnpm build && next export -o .build", ... }