Skip to main content
Version: v7.0.0

Deployments

Deployments

NEXT.JS Official Documentation

For a seamless deployment of your Next.js app, leverage the simplicity of Vercel, provided by the creators of Next.js.

For an in-depth guide on deploying with Next.js, dive into their comprehensive documentation available here. https://nextjs.org/docs/deployment

Isomorphic Deployments Steps

note

We are going to deploy the isomorphic workspace to Vercel.

1. Import project to Vercel.

Import Project

2. Edit Root Directory.

Edit Root Directory

3. Select Workspace.

In our case it's isomorphic.

Edit Root Directory

4. Override Build Command

We have already provided custom build commands for every workspace in the root package.json file. Check All Commands. For isomorphic workspace, the build command is pnpm iso:build s

cd ../.. && pnpm iso:build

Custom Build Command

5 Environment Variables.

If your project requires any environment variables provide those. In our case isomorphic workspace required variables are NEXTAUTH_SECRET & NEXTAUTH_URL. Learn more about Environment Variables in Turborepo

NEXTAUTH_SECRET="your-next-auth-secret"
NEXTAUTH_URL="your-next-auth-url"
NEXT_PUBLIC_GOOGLE_MAP_API_KEY="your-google-map-api-key"

Custom Build Command

6 Click Deploy

More Information

For more information on Vercel deployment, refer to the Official Documentation