Workspaces are a new way to setup your package architecture that’s available by default starting from Yarn 1.0. It allows you to setup multiple packages in such a way that you only need to run yarn install once to install all of them in a single pass.
In this example we have three workspaces:
- app: A Next.js for demos.
- mobile: Area for iOS/React Native development.
- models: Models for rapid development in app.
Deploy the example using Vercel:
Install it and run:
yarn
yarn dev
Deploy it to the cloud with Vercel (Documentation).
Choose
packages/web-app
as root directory when deploying.