How to move your Bubble app to Cloudflare yourself
Plenty of people build a good app on Bubble and later want the code and the data in their own hands. Maybe they want a hosting bill they can predict. Maybe they want a developer to be able to pick the project up without learning Bubble first. Either way it is a fair thing to want, and it no longer has to be a custom project. This guide walks through the self-serve route so you know what you are in for before you start.
Can you move a Bubble app to Cloudflare without coding?
Yes. You give a migration tool your app file, it rebuilds the app as code, and it sets that code up in your own Cloudflare account. We built App Mover to do exactly this. Your pages become React and TypeScript. Your database becomes SQL on Cloudflare D1, which Cloudflare describes as a serverless database with SQLite's SQL semantics. Your uploaded files go to Cloudflare R2, its object storage. Sign-in and privacy rules come across as well.
Your Bubble app is only read, never changed. It keeps running until you decide to point your domain somewhere else.
What Bubble itself gives you
It helps to know where the edges are. Bubble's own guide to exporting an app says Bubble does not export ready-to-run code. The .bubble file you can download describes your app's structure, but it cannot be run outside Bubble. Your data is a separate download: in the editor's Data tab, open App data and export it as CSV or JSON. Bubble does not export passwords (Bubble manual).
That gap is what a migration tool fills. It reads the structure and rebuilds it as code you can run.
Before you start
- Count your pages. Price and effort follow page count, so get a rough number, reusable elements included.
- Write down your plugins. Custom JavaScript plugin actions and a few closed-source plugins cannot be converted automatically, according to the App Mover page. Note what each one does for your app.
- List what talks to your app. That means API Connector calls, and any service that calls your API workflows (webhooks). Webhooks end up at new addresses, so those services need updating.
- Download your data as a backup. Use the CSV or JSON export above. It costs nothing and it is good to have.
- Open a free Cloudflare account if you do not have one. The app will live there, under your name.
The four steps
1. Upload your app file
Download your app file from the Bubble editor and upload it to App Mover on a private page. The tool strips passwords and keys out of the file as it arrives. You do not need an account or a card for this part.
2. Look at the free sample
Up to 10 of your pages are rebuilt as real code. Click through them next to your original. You also see the exact price, and anything that cannot move automatically is listed before you pay. Only the sample is built at this point, not the whole app.
3. Pay once, then the whole app is built
If the sample looks right, you pay once. Every page is built with your data, files and sign-in, then set up in your Cloudflare account. Small apps take minutes, larger ones a few hours. You enter your Cloudflare details on a secure page, never in a chat.
4. Review, then switch your domain
Go through every page at your own pace. App Mover includes two rebuild rounds on any page you flag and 30 days of fixes. When it behaves like your original, you switch your domain.
What becomes what
- Pages and reusable elements become React and TypeScript pages built to match your design.
- Data types, fields and option sets become a SQL database with your records loaded.
- Uploaded files and images go to R2.
- Users and sign-in become built-in accounts.
- Privacy rules become access rules checked on every database read.
- Backend workflows and API Connector calls become server code and API routes, with a checklist for anything that needs a person.
- API workflows become webhook routes at new addresses, listed for you.
Test it before you switch
- Sign in as an admin, a normal member and a brand new visitor. Check that each one sees only what they should.
- Create, edit and delete one record of every important type.
- Upload a file and open it again.
- Trigger every workflow that sends email, takes a payment or calls another service.
- Update the webhook address in each outside service.
- Leave the Bubble app running for a few days after the switch so you can compare if something looks off.
If your app handles logins or payments, run the 15 minute security checklist for Bubble apps on the new version too.
What does it cost to run afterwards?
You pay for the move once. After that the running cost goes to Cloudflare. The Workers Free plan allows 100,000 requests a day, and the Workers Paid plan has a minimum charge of $5 USD a month for an account (Cloudflare pricing). Check that page before you decide, because limits change. The price of the move itself is on the App Mover page.
When you should not move
If your app is small, you edit it in Bubble every week and the bill does not bother you, staying put is a perfectly good call. Moving makes sense when you want ownership, a cost you can plan, or a codebase other people can work on. The free sample is a cheap way to find out what your app looks like as code before you commit. If your app leans on plugins that cannot be converted, or you would rather someone else did the work, our No-Code App Porting service covers that.
Common questions
Will my Bubble app stop working?
No. The tool reads your file and nothing else, so the app carries on until you switch your domain.
Is my data safe during the move?
The App Mover page says passwords and keys inside the app file are removed on upload, and that the details you enter are encrypted and deleted when the migration ends, or after 30 days at most.
Do I have to be technical?
You need to download a file, click through a sample and open a Cloudflare account. If something unusual comes up, a developer can take it from there, because the result is standard React, TypeScript and SQL.
Sources
- App Mover: self-serve Bubble migration to Cloudflare, Red Center Studio
- Exporting your Bubble app, Bubble manual
- Cloudflare Workers pricing, Cloudflare
- Cloudflare D1, Cloudflare
- Cloudflare R2, Cloudflare