---
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"
published: 2025-11-03
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
---
<!-- docsgraph:related -->
## Related pages

> **For AI agents:** Follow these links to understand how this page connects to the rest of the Vercel ecosystem. For the full cross-link map (inbound, outbound, prerequisites, and semantic neighbors), see the .graph.md link below.

- [Next.js](https://vercel.com/docs/frameworks/full-stack/nextjs?from=related) — Vercel is the native Next.js platform, designed to enhance the Next.js experience.
- [vercel build](https://vercel.com/docs/cli/build?from=related) — Learn how to build a Vercel Project locally or in your own CI environment using the vercel build CLI command.
- [Deploying from CLI](https://vercel.com/docs/cli/deploying-from-cli?from=related) — Learn how to deploy your Vercel Projects from Vercel CLI using the vercel or vercel deploy commands.
- [Build System](https://vercel.com/docs/fundamentals/builds?from=related) — Learn how Vercel transforms your source code into optimized assets ready to serve globally.
- [Deploy from CLI](https://vercel.com/docs/projects/deploy-from-cli?from=related) — Set up and deploy a Vercel project using the CLI, from linking to production.
- [How to Deploy a Vue.js Site with Vercel](https://vercel.com/kb/guide/deploying-vuejs-to-vercel?from=related) — Create your Vue.js app and deploy it with Vercel.
- [Deploying Storybook with Vercel](https://vercel.com/kb/guide/storybook-with-vercel?from=related) — Learn how to deploy Storybook applications to Vercel in minutes.
- [How to Deploy a Jekyll Site with Vercel](https://vercel.com/kb/guide/deploying-jekyll-with-vercel?from=related) — Create a Jekyll website and deploy it live with Vercel.
- [How to Deploy a Brunch App with Vercel](https://vercel.com/kb/guide/deploying-brunch-with-vercel?from=related) — Create a Brunch app and deploy it live with Vercel.
- [How to Deploy an Aurelia App with Vercel](https://vercel.com/kb/guide/deploying-aurelia-with-vercel?from=related) — Create an Aurelia app and deploy it live with Vercel.

Full cross-link map for this page: [/kb/guide/deploying-locally-built-nextjs.graph.md](/kb/guide/deploying-locally-built-nextjs.graph.md)
<!-- /docsgraph:related -->


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.

```bash
vercel build && vercel deploy --prebuilt
```