> ## Documentation Index
> Fetch the complete documentation index at: https://docs.springwinter.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Deploy a vibe-coded application to production

> Inspect AI-generated code, choose supported resources, protect secrets, and verify a real application before treating an AWS deployment as production ready.

A vibe-coded application can run on SpringWinter when its exported source fits supported static hosting or container resources. First identify its server, database, authentication and storage dependencies. A frontend that runs locally is not evidence that those dependencies moved with it.

## Choose the right starting point

Use this approach when you want resources in an AWS account you own and can take responsibility for that account. Use another host when you need free hosting without AWS, unsupported infrastructure, or an upstream service that cannot be migrated. Check [compatibility](https://docs.springwinter.dev/reference/compatibility.md) before preparing deployment files.

A local app, a deployed app and a production-ready app are different:

| State | What you have proved | What remains |
| - | - | - |
| Local | The app works in one development environment. | Reproducible build, external dependencies and public access. |
| Deployed | A specific revision runs on remote infrastructure. | Authentication, persistence, recovery, monitoring and representative behavior. |
| Production ready | The intended user journey and operational controls have been verified. | Ongoing maintenance, incident response and cost review. |

## Inspect the exported repository

1. Read manifests, lockfiles, README and deployment configuration. Record framework and runtime versions.
2. Find every long-running process and every API request from the browser. A Vite `dist/` directory can be static; a Next.js route handler needs server compute.
3. List variable names without reading or copying secret values. Distinguish public build settings from server secrets.
4. Identify external authentication, database, file storage, email, payment and model services. Record which account owns each service.
5. Find any file writes, SQLite databases, uploaded files or generated indexes. Task replacement deletes local container data.
6. Run reviewed tests with fake dependencies or a new disposable database. Do not aim the test suite at a shared database.

For Lovable or Bolt exports, inspect source imports and network requests rather than assuming a particular backend. Keep a managed backend during the first frontend migration if the app depends on it. Moving a frontend does not migrate users, authentication callbacks, stored files, policies, functions or database rows. Data migration needs a separate plan, authorized export/import and verification.

## Architecture

```mermaid theme={null}
flowchart LR
    Dev[Developer or coding agent] --> Control[SpringWinter control plane]
    Control -->|Approved provisioning| AWS
    Browser[Browser] --> Frontend
    Browser --> API
    subgraph AWS[Customer-owned AWS account]
        Frontend[Static site on S3 and CloudFront]
        API[Container web server behind load balancer]
        SQL[Private database]
        Objects[Private object storage]
        API --> SQL
        API -->|Application storage adapter| Objects
    end
    API --> External[Existing external services, when retained]
```

The diagram is a possible split application, not a requirement to create every resource. The browser reaches a public API. It must not connect directly to a private database or receive database credentials.

## Prepare and deploy

Use the [React and FastAPI example](https://docs.springwinter.dev/deploy/frameworks/react-fastapi.md) for a split application or [Next.js and PostgreSQL](https://docs.springwinter.dev/deploy/nextjs.md) for a server-rendered application. Both link to a reviewed template release.

Before creating resources, complete a SpringWinter account, AWS connection and GitHub authorization for source builds. Confirm the project Region, source revision, Docker build context, startup command, health path and cost assumptions. See [customer-owned AWS](https://docs.springwinter.dev/guides/customer-owned-aws.md) and [cost estimation](https://docs.springwinter.dev/guides/cost-estimation.md).

In the dashboard, create or deliberately reuse the required data resources, then the web server or static website. Configure secrets through the environment settings. Build-time settings become part of frontend assets when the framework exposes them publicly. Never place tokens, database passwords or model keys there.

Codex, Claude Code and Cursor can follow the same plan with the [public deployment skill](https://docs.springwinter.dev/guides/coding-agents.md). For REST automation, read the [current API reference](https://docs.springwinter.dev/api-reference/overview.md) and public OpenAPI before building requests. Do not translate a screenshot into guessed request fields.

## Verify before inviting users

* Observe the exact deployment workflow until it succeeds or fails. An accepted request or visible URL is not completion.
* Open the HTTPS URL and a nested frontend route. Refresh that route.
* Test a harmless representative user journey, including login and authorization between users.
* Check a database-dependent action, upload and background job when the app uses them.
* Verify that sample data survives an approved task replacement. Test each storage type separately.
* Verify custom-domain certificates and authentication callback URLs before switching traffic.
* Keep a tested backup/restore procedure, monitoring and a dependency update process.

A health check proves only the behavior implemented at that endpoint. A screenshot is not evidence that writes, email or payments work. Use test accounts and sandbox integrations to avoid accidental side effects.

## Troubleshooting and cleanup

A blank frontend often means a missing public API URL or JavaScript error. An API that works with `curl` but fails in the browser can indicate a CORS or mixed-content error. A container that starts and then loses data can indicate a local filesystem dependency. Check [deployment troubleshooting](https://docs.springwinter.dev/troubleshooting/deployments.md) before changing infrastructure.

For a temporary experiment, approve cleanup explicitly. Remove previews before their parent. Decide whether to keep database snapshots and object data before deletion. Ending SpringWinter access does not delete resources in your AWS account.

## Questions

**Can my agent make the app production ready automatically?** It can inspect and propose changes. You must still approve infrastructure changes and verify authentication, recovery, persistence and costs.

**Must I move a managed database immediately?** No. A staged migration can retain it while you validate the new application host. Confirm routing, credentials and service terms.

**Does this guide promise a successful deployment?** No. It is a procedure. Workload fit and the observed checks determine the result.

Related: [when to use SpringWinter](https://docs.springwinter.dev/when-to-use-springwinter.md), [full-stack architecture](https://docs.springwinter.dev/guides/full-stack-apps.md), [environment variables](https://docs.springwinter.dev/concepts/environment-variables.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.