AI App Deployment Guide · Updated November 2026

How to Deploy an AI-Generated Web App

Your AI app works in the preview. Now you need to put it online. This guide walks you through hosting, source code, environment variables, databases, domains, testing, and the checks to make before real users depend on your app.

A practical guide for beginners, founders, and small teams. The steps are platform-neutral, with a Google AI Studio example.

On this page

Building an app with AI and deploying it are two different jobs. An AI builder can generate screens, code, and sometimes a backend. Deployment makes the app run on a hosting platform so people can open it through a public URL.

The easiest route is usually the publish or deploy option inside the tool you used to build the app. If you need a different host, more control, or a production setup, you may need to export the code or connect a Git repository and deploy it elsewhere.

Start hereIf your builder already provides hosting and the app only needs a simple public URL, use its built-in publishing workflow first. Choose an external host when you need a different runtime, database, deployment process, infrastructure control, or operating model.

What does it mean to deploy an AI-generated web app?

Deployment is the process of taking an app project and running it on a server or hosting platform so people can use it online. It usually includes building the project, setting up its runtime, connecting required services, configuring secrets, and exposing the app through a URL.

Do not confuse a preview link with a production deployment. A preview is useful for checking a design or sharing an early version. A production deployment should use the correct database, secure credentials, stable configuration, error monitoring, and a tested release.

Preview

For review and feedback

Use a temporary or protected version to check screens, workflows, forms, and responsive behavior before launch.

Production

For real users

Use a stable environment with production data, protected secrets, backups where needed, and a way to monitor and undo a bad release.

Before you deploy: check what your AI builder created

Do not choose a host until you know what the project needs. An AI-generated landing page can be very different from a full-stack app with sign-in, database records, file uploads, and AI model calls.

  • Frontend: Is it plain HTML/CSS/JavaScript, React, Next.js, or another framework?
  • Backend: Does it include server routes, API endpoints, background jobs, or a separate backend service?
  • Database: Does it use Supabase, Firebase, PostgreSQL, or another data store?
  • Authentication: Are users signing in? Which callback URLs and permissions are required?
  • External APIs: Does it call Gemini, OpenAI, payment services, email providers, or other APIs?
  • Files: Does it need persistent file storage or user uploads?
  • Source access: Can you export the code or sync it to GitHub?

Keep a copy of the project and its setup notes before changing deployment settings. If the builder has a code export or Git integration, save a version that you can restore.

Choose the right place to host your AI-generated app

There is no single best hosting platform for every AI-built app. Match the hosting type to the app, not just to the tool that generated it.

Your appHosting approach to considerWhat to confirm
Static landing page or simple frontendStatic hosting or a CDN-backed web hostBuild output folder, custom domain, HTTPS, redirects
Frontend with serverless API routesManaged frontend or serverless platformFramework support, function limits, runtime, environment variables
Full-stack app with a backend and databaseManaged app platform or container hostingServer process, port, database access, persistent storage, backups
App that needs custom services or DockerContainer platform or self-managed deploymentDockerfile, resource limits, networking, logs, patching responsibility
App that runs models or heavy inferenceAI/ML hosting or infrastructure with suitable acceleratorsGPU availability, model serving, latency, scaling, inference cost

For a simple project, start with the builder's own publishing option or a managed host. A self-hosted platform such as Dokploy can suit teams that want to manage deployments from Git, Docker, or Docker Compose, but it also means taking responsibility for server updates, backups, and operations. See Dokploy's deployment-platform overview.

For a more managed full-stack environment, compare platforms such as Northflank. Its guidance highlights concerns such as isolated workloads, preview environments, secrets, access controls, and deployment pipelines. Those controls matter more as an app moves from an experiment to a service used by customers.

ImportantNot every AI builder lets you export code or deploy to any host. Check whether the project is portable, which frameworks and databases it uses, and whether the builder's terms or technical setup place limits on external deployment.

How to deploy an AI-generated web app: step by step

1

Run the app in preview and test its main workflow

Open every important page and complete the main task from beginning to end. Test forms, menus, sign-in, data saving, uploads, and API calls. Fix obvious errors before deployment. A visually complete screen does not prove that the app's backend works.

2

Save the source code and create a known version

Export the project or connect it to GitHub if your builder supports it. Keep a working version before making production changes. Read the README or project instructions for the framework, package manager, build command, and start command.

3

Select a hosting platform that supports the project

Check the framework and runtime requirements. Confirm that the host supports the app's Node/Python or other runtime version, build command, output directory, server port, background tasks, and required database connections.

4

Configure environment variables and secrets

Add the settings the app expects, such as database URLs, authentication secrets, and API keys, using the host's secret or environment-variable settings. Never paste private keys into frontend code, a public repository, or a prompt that will be saved in a public place.

5

Connect the database and other services

Use the correct production database, apply any required schema changes, and configure allowed origins or authentication callback URLs. Check that the deployed app can read and write the data it needs. Set up backups and access permissions before storing real customer information.

6

Deploy a preview or staging version first

Use a preview environment when the host provides one. Test it with non-sensitive sample data. Check that the build succeeds, the app starts, routes load directly, and the server can reach its dependencies. Do not assume that a successful build means the live app is fully functional.

7

Connect your domain and enable HTTPS

You can start with the host's default URL. For a branded app, add your domain in the hosting dashboard and update the DNS records it gives you. Wait for DNS changes and certificate provisioning to complete, then check both the root domain and the www version if you use them.

8

Test the production version and monitor it

Test the actual production URL, not just the builder preview. Check login, forms, payments if relevant, API calls, mobile layouts, error pages, and page speed. Review logs after launch and keep a way to roll back to the last working release.

Example: deploy an app from Google AI Studio

Google AI Studio has a direct publishing workflow for apps created in Build mode. According to its current documentation, publishing creates a corresponding service in Google Cloud Run.

  1. Open the app in Google AI Studio Build mode and test the preview.
  2. Select Publish in the top-right corner.
  3. For an eligible Starter Tier account, select Get Started and then Publish App.
  4. When deployment finishes, open the Cloud Run URL provided by AI Studio.
  5. Optionally choose a custom subdomain under ai.studio during publishing.

Know the limits: Google's documentation says Starter Tier eligibility is limited. It currently allows up to two deployed services in one Cloud Run region. Standard deployment requires a linked Google Cloud project with billing enabled. Accounts with active or previous paid Google Cloud billing, and certain Workspace accounts, may not qualify for Starter Tier. Check the official documentation before relying on these options.

Read Google's official AI Studio deployment instructions. For broader context, see Google Cloud's guide to building an app with AI.

Connect a custom domain to your deployed app

A custom domain makes an app easier to remember and gives it a more professional address. The exact setup depends on your host, but the usual process is:

  1. Add the domain or subdomain in your hosting dashboard.
  2. Copy the DNS record values shown by the host. These may be an A record, AAAA record, or CNAME record.
  3. Open the DNS settings at the company where your domain's nameservers are managed.
  4. Add or update only the records requested by the host. Avoid deleting unrelated mail or verification records.
  5. Return to the hosting dashboard and wait for domain verification and HTTPS provisioning.
  6. Test the domain on desktop and mobile, including redirects and direct links to inner pages.

Do not guess DNS values. Copy the exact values from the platform you are connecting to. DNS propagation and certificate issuance can take time, and the host's dashboard should show when the domain is ready.

Security checks before you make the app public

AI-generated code still needs human review. Deployment makes the app reachable; it does not automatically make every feature secure or production-ready.

  • Keep API keys and database credentials in server-side secrets, not browser JavaScript.
  • Check authentication, role permissions, and access to private records.
  • Restrict database permissions and remove test or administrator credentials.
  • Validate user input and file uploads on the server.
  • Use HTTPS and configure secure cookies where applicable.
  • Review dependencies and remove packages or demo endpoints you do not need.
  • Set up backups for important database and file data.
  • Review logs and error messages so private values are not exposed.
  • Test rate limits and usage controls for paid or AI-powered API calls.

For an app that processes customer or business information, consider what data you collect, who can access it, how long you keep it, and what privacy notices or legal requirements apply to your users. This guide is technical information, not legal advice.

Common problems when deploying AI-generated apps

ProblemLikely reasonWhat to check
Build failsMissing dependencies, wrong runtime, or incorrect build commandBuild logs, package file, runtime version, environment variables required at build time
App deploys but shows an errorServer process or port is configured incorrectlyStart command, host-required port binding, server logs
Login works in preview but not liveProduction callback URL or allowed origin is missingAuth provider settings and production domain configuration
Data does not appearWrong database URL, missing migration, or permissions issueProduction environment variables, schema, database access rules
AI feature returns an API errorMissing, invalid, or exposed API key; quota or billing issueServer-side secrets, provider dashboard, usage limits, API logs
Domain does not openDNS record mismatch or domain verification pendingExact DNS values, nameservers, host domain status, HTTPS status
App works locally but not on hostLocal files, services, or settings are not available in productionPersistent storage, external service access, OS/runtime differences

When something fails, start with the first error in the build or runtime logs. Fix one problem at a time, redeploy, and repeat the test that failed.

What deployment costs should you check?

A free deployment tier may be enough for a demo, portfolio, or small test. A production app can have several separate costs, even when the AI builder itself is free.

  • Hosting: compute, build minutes, bandwidth, and storage.
  • Database: storage, backups, connections, and data transfer.
  • AI usage: model tokens, inference, embeddings, or GPU time.
  • Domain: domain registration and renewal.
  • Services: email, authentication, file storage, payments, and monitoring.
  • Operations: logs, support, security tools, and backup retention.

Check usage limits, what happens when you reach them, and whether the platform can scale down or pause the app. Read the current pricing page before launching a service that other people depend on.

A prompt to ask your AI builder for deployment instructions

If you are not sure how your generated project should be hosted, ask the AI coding tool to inspect the project and produce a deployment plan before changing anything.

Inspect this project and prepare a deployment checklist for production. Do not make changes yet. 1. Identify the frontend framework, backend runtime, package manager, build command, start command, and expected port. 2. List all environment variables and secrets the app needs. Mark which ones must only exist on the server. 3. Identify database, authentication, file storage, email, payment, and AI API dependencies. 4. Explain whether the project can be deployed as a static site, serverless app, managed full-stack app, or container. 5. Recommend hosting requirements based on the current architecture. Do not assume every platform supports this project. 6. List DNS, HTTPS, callback URL, database migration, backup, logging, and access-control steps. 7. Identify security or reliability risks that must be fixed before launch. 8. Provide a preview deployment test plan and a rollback plan. Do not expose secrets, invent environment-variable values, or claim that deployment is complete. Explain anything that needs a human decision.

Final launch checklist

  • The main user workflow works from start to finish.
  • The production build and server start without errors.
  • All required environment variables are set in the correct environment.
  • Database migrations, access rules, and backups are ready.
  • Authentication and external service callback URLs use the production domain.
  • The custom domain opens with HTTPS and correct redirects.
  • Private API keys are not exposed to the browser or public repository.
  • Forms, uploads, mobile layouts, and important links have been tested.
  • Logs, usage limits, and a rollback process are available.

Continue with these guides if you are still building, choosing a platform, or preparing your app for search:

Frequently asked questions

Can I deploy an AI-generated web app without coding?

Often, yes. Many AI builders provide a publish or deploy button that handles hosting for you. If you move the project to another host, you may still need to configure a repository, environment variables, database, domain, or build settings.

Can I deploy an AI-generated app for free?

Some platforms offer free or limited deployment tiers, but eligibility, quotas, app limits, and included services vary. Check the current plan details and estimate hosting, database, domain, and AI API costs before launch.

Can I deploy an app created in Google AI Studio?

Yes. Google AI Studio supports publishing apps from Build mode to Cloud Run. Starter Tier is limited to eligible accounts and currently has a two-service limit in a single region. Standard deployment requires a linked Google Cloud project with billing enabled. Read the current official documentation for eligibility and limits.

Do I need GitHub to deploy an AI-generated app?

Not always. Some builders deploy directly from their platform. GitHub becomes useful when your host deploys from a repository, when you want version history, or when a team needs to review and manage code changes.

Can I use my own domain for an AI-generated web app?

Usually, if the builder or hosting platform supports custom domains. Add the domain in the host dashboard, enter the exact DNS records it provides, and wait for verification and HTTPS setup.

Is an AI-generated app ready for production as soon as it deploys?

No. A successful deployment only means the app has been published to an environment. You should still test authentication, permissions, database behavior, API calls, backups, mobile layouts, and error handling before real users rely on it.

What is the difference between publishing and deploying?

The words are often used interchangeably. In many builders, publishing is the user-facing action that deploys the app and gives it a public URL. In a broader development workflow, deployment can include building, configuring, releasing, monitoring, and maintaining the app.

Sources and further reading

This guide draws on the official deployment documentation and platform resources below. Product capabilities and plan limits can change, so confirm the current details on the linked provider pages before choosing a service.

Editorial note: This is a platform-neutral educational guide, not a hands-on test of every hosting provider. Verify current product features, eligibility, terms, and prices directly with each provider. Security guidance here is general information, not a security audit or legal advice.

Last reviewed: November 5, 2026. Update provider limits, prices, and steps when the linked documentation changes.