---
title: Can I deploy a locally built Next.js app to Vercel?
description: Learn how to deploy a locally built Next.js application to Vercel.
url: /kb/guide/deploying-locally-built-nextjs
canonical_url: "https://vercel.com/kb/guide/deploying-locally-built-nextjs"
last_updated: 2025-11-10
authors: Matthew Sweeney
related:
  - /docs/build-output-api/v3
  - /docs/cli
install_vercel_plugin: npx plugins add vercel/vercel-plugin
---

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](https://vercel.com/docs/build-output-api/v3).

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](https://vercel.com/docs/cli#commands/build) for more information.

`vercel build && vercel deploy --prebuilt`