Skip to content

Latest commit

 

History

History

nx

Nx Monorepo with Vercel Remote Caching

This is a monorepo example using Nx with a single Next.js using @vercel/remote-nx.

Table of Contents

How to Use

You can choose from one of the following methods to use this repository:

One-Click Deploy

Deploy the example using Vercel:

Deploy with Vercel

Start Locally

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

Development server

npx nx serve app

Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Build

npx nx build app

The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Further help

Visit the Nx Documentation to learn more.