Can I deploy a locally built Next.js app to Vercel?

Learn how to deploy a locally built Next.js application to Vercel.
Last updated on March 16, 2023
Build, Deployment & Git

The vercel build command can be used to build a project locally or in your own CI environment. Build artifacts are placed into the .vercel/output directory according to the Build Output API.

When used in conjunction with the vercel deploy --prebuilt command, this allows a Vercel Deployment to be created without sharing the Project's source code with Vercel.

Check out the documentation for more information.

vercel build && vercel deploy --prebuilt
Building your application locally and uploading the prebuilt output to Vercel.

Couldn't find the guide you need?