This is a monorepo example using Nx with a single Next.js using @vercel/remote-nx
.
You can choose from one of the following methods to use this repository:
Deploy the example using Vercel:
Execute create-next-app
with npm, Yarn, or pnpm to bootstrap the example:
npx create-next-app --example https://github.com/vercel/remote-cache/tree/main/examples/nx nx-monorepo
yarn create next-app --example https://github.com/vercel/remote-cache/tree/main/examples/nx nx-monorepo
pnpm create next-app --example https://github.com/vercel/remote-cache/tree/main/examples/nx nx-monorepo
npx nx serve app
Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
npx nx build app
The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Visit the Nx Documentation to learn more.