---
title: "Leave Render in 2026: render.yaml, Render Postgres and variables"
url: https://while.sh/en/guides/migrate-from-render/
author: "Aloïs Oddon, co-founder of Nextmap"
updated: 2026-11-19
---

# Leave Render without rewriting your app, with your AI (2026)

Your customers want their data in France, or you want your AI to deploy for you? Connected to while over MCP, it takes over your Render app as is, copies the database and deploys it.

> **The short version.** Over MCP, your AI reads your render.yaml, copies your Render Postgres database and carries over your variables. Your app then runs in France. What matters, like deleting a database, waits for a person's approval.

## Prerequisites

- An app on Render, in Node.js, Python or Go, or with its Dockerfile.
- Access to your Render account, to export the database.
- An AI that works in a terminal: Claude Code, Codex, Cursor or Gemini CLI.

## Step 1: Give your AI this message

Open your AI in your app's folder and paste this message into it:

```text titre="The message to give your AI"
Connect to while with my account (while.sh/agents), then put my app on while.
```

With your account, your AI adds while's MCP server itself. On the first call to while, a page opens in your browser: choose "A new app", then click Authorize.

## Step 2: Open your app

Your AI gives you your app's address, for example `https://mon-appli.while.cloud`, over HTTPS.

## What your AI does

It reads your render.yaml, if there is one, and carries each service over to while.yaml (source 1):

| In render.yaml | In while.yaml |
|---|---|
| `type: web` | a web service |
| `type: web` and `runtime: static` | a `type: static` service |
| `type: worker` | a `type: worker` service |
| `type: pserv` | a `public: false` service, which only your other apps call |
| `type: cron` and its `schedule` | a scheduled job, in `crons` |
| `type: keyvalue` | a cache, in `caches` |
| `databases` | a PostgreSQL database, in `databases` |

```yaml titre="while.yaml"
apiVersion: while/v1
project: mon-appli
services:
  - name: web
    health:
      path: /
  - name: worker
    type: worker
    command: [node, worker.js]
databases:
  - name: main
crons:
  - name: menage
    schedule: "0 3 * * *"
    command: [node, menage.js]
```


<figure class="illus"><img src="/illustrations/guide-migration-1200.webp" srcset="/illustrations/guide-migration-768.webp 768w, /illustrations/guide-migration-1200.webp 1200w" sizes="(min-width: 48rem) 46rem, 100vw" width="1536" height="1024" loading="lazy" decoding="async" alt="Migrate your Render app to while: the PostgreSQL database copied with pg_dump, the variables carried over, secret values typed by a person, the app at its own address before the domain switch, in France" /><figcaption>The database, the variables and the secrets: your AI moves it all, and the app answers at its own address before the domain switch.</figcaption></figure>

## Copy your Render Postgres database

> You, to your AI: Copy our Render database to while.

Your AI exports the database with `pg_dump`, at the external address Render gives the database, then loads it into while (source 2).

## Carry over your variables

> You, to your AI: Carry over our Render variables.

Your AI carries over the variables from render.yaml and from your environment groups. The secret values, which render.yaml leaves as `sync: false` (source 1), you enter yourself in while: your AI never sees them.

## Move to your own domain

> You, to your AI: Put the app on www.acme.com.

Your AI declares the domain, you add the DNS records it gives you, and the HTTPS certificate follows.

## Go back to the previous version

> You, to your AI: Go back to the previous version.

In the 30 minutes after a production release, the previous version comes back in a second. After that, it takes a few seconds.

## Next steps

- [Compare Render and while](/en/comparisons/while-vs-render/)
- [Render pricing](/en/comparisons/render-pricing/)
- [Restore a PostgreSQL database](/en/guides/restore-postgresql/)

## Sources

1. [Render, the Blueprint specification (render.yaml)](https://render.com/docs/blueprint-spec), 2026-11-05
2. [Render, backups and exporting a Postgres database](https://render.com/docs/postgresql-backups), 2026-11-05

## Questions

### What about my Render disk?

while has no persistent disks: keep your files in an S3 bucket, which your AI declares in one line.

### Do I need to write a Dockerfile?

No, a Node.js, Python or Go app is detected automatically. If your app already has its own, while uses it.

### Can I keep Render while I check?

Yes, your app runs on while at its own address before you switch your domain.

### Where do my app and its data run?

In France, at Nextmap. The database is backed up every day, with a way back over 14 days, once a person approves.

### Does my AI see my credentials?

No. You paste them into while, the app uses them, and your AI never sees them. Every call is logged.
