← All articles

App Builders

How to Deploy AI-Built Apps (2026): Step-by-Step Guide

6 min read

Updated

Learn how to deploy your AI-generated applications to production. Follow our step-by-step guide covering one-click deploys, Vercel, and full-stack database setups.

Deploying an AI-built app means making it accessible on the internet with a public URL. Most AI builders offer built-in, one-click deployment options that take under 5 minutes.

Depending on your project's needs, there are three common paths to launch: using your builder's default hosting, exporting the codebase to platforms like Vercel or Netlify for more control, or configuring a full-stack deployment with a dedicated database and custom domain.

This guide walks you through the step-by-step process for each scenario, followed by key troubleshooting tips for common deployment errors.


Scenario 1: One-Click Deploy from Your Builder

Best for: Developers and creators using builders like Lovable, Bolt.new, or Replit who want the fastest path to a live URL.

Deploying from Lovable

  1. Step 1: Open your Lovable project and click the Publish button in the top right corner.
  2. Step 2: Lovable assigns a default URL (e.g., your-app-name.lovable.app). Your app is now live and accessible to anyone with the link.
  3. Step 3 (Optional): To use a custom domain (e.g., yourapp.com), go to Project Settings > Domain. Enter your domain name and follow the DNS instructions to add a CNAME record at your domain registrar pointing to Lovable's servers.
  • Time required: Under 5 minutes for the default URL; 15–30 minutes for a custom domain (including DNS propagation waiting time).

Deploying from Bolt.new

  1. Step 1: In the Bolt.new editor, click the Deploy button.
  2. Step 2: Choose the deployment target. Bolt.new handles direct deployment and generates a public URL.
  3. Step 3: Your app is live immediately at the provided address.

Deploying from Replit

  1. Step 1: Open your Replit project and click the Deploy button at the top of the workspace.
  2. Step 2: Replit generates a .replit.app URL, running the application on its own infrastructure.
  3. Step 3: To configure a custom domain, navigate to the deployment settings and follow the provided DNS configuration steps.

Scenario 2: Deploy Exported Code to Vercel

Best for: Users who want advanced control over hosting, custom domains, or plan to use production features such as analytics, edge functions, and team collaboration.

Prerequisites

  • A free GitHub account
  • A free Vercel account
  • Your app's code exported from your AI builder

Step-by-step

  1. Step 1: Export your code to GitHub.
    • In Lovable, verify the repository exists under Settings > GitHub (if connected).
    • In Bolt.new, click Export to download your code, create a new GitHub repository, and upload the files.
  2. Step 2: Connect GitHub to Vercel.
    • Sign in to Vercel and click New Project. Select the GitHub repository containing your app's code.
  3. Step 3: Configure the project.
    • Vercel automatically detects the underlying framework (React, Next.js, Vite).
    • If your app uses API keys or databases, click Environment Variables and add the keys:
      • VITE_SUPABASE_URL (your Supabase project URL)
      • VITE_SUPABASE_ANON_KEY (your Supabase anonymous public key)
      • Any other required API keys.
  4. Step 4: Deploy.
    • Click Deploy. Vercel builds the project and assigns a your-project.vercel.app URL. The initial build takes 1–3 minutes.
  5. Step 5: Set up a custom domain (Optional).
    • Go to Project Settings > Domains in Vercel, add your domain, and update the DNS records with your registrar. SSL is provisioned automatically.
  6. Step 6: Automatic updates.
    • Once connected, pushing code updates to GitHub or syncing changes from your builder automatically triggers a new Vercel deployment.

Scenario 3: Full-Stack Deploy with Database

Best for: Applications with user authentication, persistent data storage, or those utilizing a database backend like Supabase.

Step-by-step

  1. Step 1: Set up Supabase.
    • Create a project on Supabase. Navigate to Settings > API and copy:
      • Project URL (https://xxxxx.supabase.co)
      • anon public key (eyJ...)
  2. Step 2: Configure the database schema.
    • If your AI builder generated a database schema, open the Supabase SQL Editor, paste the SQL schema commands, and click Run.
  3. Step 3: Deploy the frontend to Vercel.
    • Follow the steps in Scenario 2. Add the copied Supabase Project URL and anon public key as environment variables (VITE_SUPABASE_URL and VITE_SUPABASE_ANON_KEY).
  4. Step 4: Update Supabase redirect URLs.
    • In Supabase, go to Authentication > URL Configuration. Add your production Vercel URL to the Site URL and Redirect URLs lists so authentication requests resolve correctly on the live site.
  5. Step 5: Test the live deployment.
    • Visit your live Vercel URL and test all key features: signup, login, and data storage. If errors occur, right-click, select Inspect, and open the Console tab to identify the failing request.
  6. Step 6: Set up error monitoring.
    • Integrate an error tracking service like Sentry (free tier available) to capture live client-side errors and debug issues before users report them.

Troubleshooting Common Deployment Errors

"Build failed" on Vercel

  • Cause: Strict TypeScript compilation errors or missing dependencies in the AI-generated code.
  • Fix: Review Vercel's build logs. You can temporarily bypass strict type checks by adding // @ts-ignore above the failing line, or install any package listed as missing.

"API calls fail on deployed version but work locally"

  • Cause: Missing environment variables in production, or CORS (Cross-Origin Resource Sharing) restrictions on the API.
  • Fix: Verify all environment variables are saved in Vercel’s project settings. Ensure your code points to environment variables rather than a hardcoded localhost address.

"Authentication does not work after deploy"

  • Cause: The authentication provider has not been updated with the production domain.
  • Fix: In Supabase (or your auth provider settings), add the production URL under Authentication > URL Configuration > Redirect URLs.

"Page shows blank screen"

  • Cause: A critical runtime JavaScript error is preventing the page from rendering, often due to an undefined configuration key.
  • Fix: Open the browser console (F12 or right-click > Inspect > Console) to inspect the error trace.

"Images or assets not loading"

  • Cause: Broken relative file paths that resolve differently in production environments.
  • Fix: Use absolute URLs for external media. For local assets, place them in the public directory and reference them starting with a leading slash (e.g., /logo.png).

Next Steps After Deployment

Now that your application is live on the web:

  1. Gather feedback: Share the URL with a small group of target users to observe real-world usage.
  2. Monitor errors: Keep an eye on your console logs or Sentry dashboards to catch edge-case bugs.
  3. Iterate: Modify your application in your AI builder. Pushing changes to your connected repository will automatically update the live build.
  4. Track analytics: Set up lightweight analytics (such as Google Analytics or Plausible) to track visitor numbers and user behavior.

FAQ

Do I need to know how to use the terminal?
No. Every step outlined in this guide has a visual, browser-based alternative. Terminal commands are entirely optional.

Is deployment free?
Yes, for prototypes and early testing. Vercel and Supabase offer generous free tiers. Paid plans become necessary as your database storage and traffic grow.

Can I modify my app after deploying?
Yes. Any changes made in your AI builder or repository will trigger automatic redeployments once committed.

How long does DNS propagation take?
Usually between 15 minutes and 2 hours, though it can theoretically take up to 48 hours for a new custom domain to resolve worldwide.

What if I break something?
Vercel archives previous successful builds. If an update breaks the site, you can instantly rollback to a functional deployment version with one click.