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
We are going to deploy the isomorphic
workspace to Vercel.
1. Import project to Vercel.
2. Edit Root Directory.
3. Select Workspace.
In our case it's isomorphic
.
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
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"
6 Click Deploy
For more information on Vercel deployment, refer to the Official Documentation