Skip to content
Deploying apps4 min read

Host a v0 project on your own hosting

Short answer

v0 generates Next.js projects with React, TypeScript, Tailwind and shadcn/ui, and its FAQ says you can export the code and deploy elsewhere. Connect the project to GitHub from its settings and copy the environment variables from Settings. If the project uses no server features, set `output: 'export'` and upload `out/` on any plan; otherwise run it as a Node.js app with Setup Node.js App on AI/Developer plans. Neon, Supabase and Upstash stay external services: from ArabyHost they are reached through their HTTPS clients, not through a direct database connection.

ArabyHost teamLast updated: ShareWhatsAppXLinkedIn
Contents
  1. What v0 generates
  2. Step 1: get the code out
  3. Step 2: copy the environment variables
  4. Step 3: try it on your computer
  5. Step 4: choose the route
  6. Step 5: what stays tied to Vercel
  7. Troubleshooting
  8. On ArabyHost

v0 is made by Vercel, so it offers one-click deploys to Vercel. But the code is yours, and it’s a normal Next.js project that runs on any Node.js server. This guide covers what’s specific to v0: getting the code out, choosing the route and placing the variables. The Next.js steps themselves are in deploy Next.js on cPanel.

What v0 generates

According to v0’s FAQ, it uses Next.js with React, TypeScript, Tailwind CSS and shadcn/ui components. When you add a database, v0 offers ready integrations with Neon, Supabase, Upstash and Vercel Blob; each creates an account with that service and adds environment variables to your project.

Step 1: get the code out

Through GitHub (the documented route):

  1. Open the project menu (...), then Settings, then GitHub.
  2. Click Connect and choose the account or organization under Git Scope.
  3. Enter a Repository Name and click Create Repository.

v0 creates a private repository and pushes the current code; later publishes from v0 go through a pull request in that repository. The FAQ also mentions exporting the code to work locally, so if your project menu shows a download option, that’s a one-off alternative.

Step 2: copy the environment variables

Open the project menu › Settings › Environment Variables and copy each one into a .env.local file on your computer (never commit it). Next.js has two kinds:

Kind Example Read when Where it goes
Starts with NEXT_PUBLIC_ NEXT_PUBLIC_SUPABASE_URL At build time, visible in the browser Where you build
Server variable DATABASE_URL, KV_REST_API_TOKEN At runtime Environment variables in Setup Node.js App

Build without the right NEXT_PUBLIC_ values and pages load with no data; see environment variables not loaded.

Step 3: try it on your computer

npm install
npm run build
npm start

Use the package manager that matches the lock file (package-lock.json for npm, pnpm-lock.yaml for pnpm). If npm run build fails here, it will fail on the server too, so fix it first (paste the error into v0 and ask for a fix). See Next.js build failed.

Step 4: choose the route

Look in the app/ folder for these signs:

  • route.ts files that read the request or write to a database.
  • "use server" (Server Actions).
  • A middleware.ts file.
  • Calls to cookies() or headers().

None of them? It’s a brochure site or landing page. Add output: "export" and images: { unoptimized: true } to next.config.mjs, build, and upload the contents of out/ to public_html with Files › File Manager. It runs on any plan.

Found one? The project needs a Next.js server. Add the server.js described in deploy Next.js, build on your computer, then:

  1. Upload everything except node_modules and .next/cache to a folder such as /home/USER/v0app.
  2. Open Software › Setup Node.js App › Create Application: Node.js 20 or 24, Production mode, startup file server.js.
  3. Add the server variables under Environment variables, click Run NPM Install, then Restart.

Success: the domain opens the site, forms and API routes work, and the Passenger log shows no errors.

Step 5: what stays tied to Vercel

  • Neon, Supabase, Upstash: independent services. From ArabyHost outgoing connections are HTTPS only, so use their HTTPS clients (@supabase/supabase-js, Neon’s serverless driver, Upstash’s REST client); a DATABASE_URL that opens a direct PostgreSQL or Redis connection will not connect. Billing is managed in your account with them, or through the Vercel Marketplace if you created them there.
  • Packages starting with @vercel/ in package.json (analytics, Blob and so on): check each package’s docs to see whether it works outside Vercel, and remove what you don’t need.
  • Image optimization and ISR: work with a Next.js server and use your account’s resources; they don’t work in a static export.

ArabyHost has no serverless functions or Edge Functions, so everything server-side runs inside one Node.js process.

Troubleshooting

  • Blank page after uploading the static export: see blank page after deploy.
  • 503 after creating the app: usually .next wasn’t uploaded or packages weren’t installed. See Node.js app 503.
  • The build stops with Killed on the server: build on your computer or in GitHub Actions, as in deploy from GitHub.

On ArabyHost

A static export of a v0 project runs on every plan, with automatic SSL and daily backups. Next.js projects that need a server run on the AI/Developer plans with Node.js 20 and 24 through Passenger, plus SSH, Git and deploys from GitHub. There’s no Docker and no serverless functions, and resources are limited per account. If you’re torn between staying on Vercel and moving, read Vercel or your own hosting. Prices in your currency are on the pricing page.

FAQ

Do I need Vercel to use a v0 project?

No. v0's FAQ says you can export the code and deploy elsewhere, adding that the full experience with variables and previews works best when the repository is connected to a Vercel project. Staying on Vercel is easier, but not required.

How do I get v0 code onto GitHub?

According to v0's docs: open the project menu (three dots), choose Settings, then GitHub, then Connect; pick the account, type a repository name and click Create Repository. v0 creates a private repository and pushes the current code.

Will the Neon or Supabase database v0 added still work?

They are accounts with those companies, not part of the hosting, so they keep running. From ArabyHost outgoing connections are HTTPS only: the services' HTTPS clients work once you copy the variables v0 added, but a `DATABASE_URL` that opens a direct PostgreSQL or Redis connection will not connect. For Vercel Blob and @vercel packages, check each one's docs before moving.

Is a static export enough for a v0 project?

It is for landing pages and brochure sites without dynamic Route Handlers, Server Actions, middleware or cookies(). If the build fails with output: 'export', the message names the feature that needs a server.

Useful? Share it with someone who needs it:WhatsAppXLinkedIn

Read next

Ready to put your idea online?

Fast, isolated hosting, support that understands you, and an AI assistant that fixes problems with you.