This repository is a pnpm monorepo with multiple Next.js apps:
apps/websitefor the main site on port3000apps/blogfor the blog on port3001apps/randomfor the random app on port3002
Install dependencies:
pnpm installRun all app dev servers through Turborepo:
pnpm devRun a single app locally:
pnpm --filter @nicotourne/website dev
pnpm --filter @nicotourne/blog dev
pnpm --filter @nicotourne/random devRun lint across the monorepo:
pnpm lintCreate production builds:
pnpm buildCreate one Vercel project per app and set the project's Root Directory to the app folder:
apps/websiteapps/blogapps/random
Vercel must point at the app directory because next is declared in each app's
package.json, not in the monorepo root.
Recommended Vercel settings for each app:
- Framework Preset:
Next.js - Install Command:
pnpm install - Build Command:
pnpm build - Output Directory: leave empty
If the Root Directory is left at /, Vercel will fail with No Next.js version detected because the root package.json does not depend on
next.