When to use a draft
Drafts work well whenever you want to try something without changing the version everyone else is working on. For example:- Test a redesign. Try new colors, fonts, or a different layout in a draft, and compare it with your current design before you commit to it.
- Find the words that work. Write different headlines, product descriptions, or calls to action in separate drafts, and keep the version that reads best.
- Try new visuals and motion. See how different photos, illustrations, or video change the feel of a page, or test scroll animations, a carousel, or a sticky navigation bar.
- Build a feature that needs new data. Ask for a new table or column in a draft. Lovable prepares the change and adds it to your project’s database when you accept the draft. See Add database tables and columns from a draft.
- Prepare changes for later. Build a sale banner or a seasonal page in a draft today, and accept it when you want to add it to your project.
- Hand changes to someone else. Let a teammate or client work in a draft, then review the changes and accept them when they’re ready.
How drafts work
You create a draft from your project’s main version, make changes in the draft, then accept it to keep those changes or delete it to discard them. You’ll see six terms as you work with drafts: Main, Draft, Update, Accept, Delete, and Publish. The table below explains each one using the same example: a bakery website where you want to try a new homepage design without changing the homepage you already have.For readers who know version control
For readers who know version control
- A draft is a branch forked from your project’s history, with its own chat.
- Update rebases the draft onto the latest version of your project. If changes overlap, Lovable resolves the conflicts by reworking the draft’s edits.
- Accept is a fast-forward merge. Your project’s history stays linear, and the draft’s edits are added as a named group.
- Delete discards the branch.
Create your first draft
Follow these steps to create a draft, make changes, compare it with your project, and decide whether to keep it.Open the draft switcher

Create a draft
Build in the draft
Compare with your project
Accept the draft, or delete it
Status indicators
When you have several drafts, the switcher shows the status of each one:
Update a draft with newer project changes
A draft starts as a copy of your project. After you create it, you or a teammate might make newer changes to the project. Those changes don’t appear in the draft automatically. When newer changes are available, the draft’s row in the switcher shows a gray dot labeled Updates available. Select Update to bring the newer project changes into the draft. You can update from the chevron next to the switcher’s Accept button or from the draft’s ⋮ menu. You can also ask Lovable to update the draft in its chat. If the newer project changes overlap with edits in the draft, Lovable adjusts the draft’s edits to work with the updated version. The update can take a few minutes, and Lovable may add a follow-up message to the draft’s chat. The update doesn’t use credits. You can update a draft while Lovable is working in the main version of your project. The draft brings in the edits your project has finished so far. You don’t need to update a draft before accepting it. If your project has newer changes, Lovable updates the draft first and then accepts it. To do both steps yourself, select Accept draft after updating in the update dialog.Delete a draft
To delete a draft, open its ⋮ menu, select Delete, and confirm. Deleting removes the draft and all of its edits. Your project stays unchanged, and the deleted draft can’t be restored.Change the order of your drafts
The switcher lists your drafts with the most recent activity first. To set your own order, press and hold a draft for a moment, then drag it where you want it. Lovable remembers that order for the project in the browser you’re using. You can’t reorder drafts while the My drafts filter is selected, because the list is showing only some of the project’s drafts. Select All drafts first.Use drafts with your team
Everyone with edit access to the project sees the same drafts. Each draft shows who’s currently working in it. If you open a draft that someone else is using, Lovable suggests creating your own draft so you can work separately. When someone else has created a draft in the project, the switcher’s Drafts heading shows two tabs: All drafts and My drafts. Select My drafts to narrow the list to the drafts you created. In a project where you’re the only person who has created a draft, the tabs don’t appear. The same tabs appear in the drafts list on your phone. When someone accepts a draft, its changes are added to the project for everyone. Any other open drafts then show the gray Updates available dot until you update them. If several drafts are accepted around the same time, Lovable processes them one at a time. When more than one draft is waiting, an Accepting drafts card appears above the project chat and shows the order. You can remove a waiting draft or drag drafts to change the order.Drafts share your app’s backend and data
A draft keeps your changes to the app separate, but it doesn’t have a backend of its own. Every draft uses your project’s built-in backend (Cloud): the same database, the same files, and the same settings. If you add, edit, or delete information while testing in a draft, those changes are real, just as they are when you test your project directly. Deleting the draft doesn’t undo them. Backend work you ask for in a draft applies to your project in the same way, apart from the changes listed below. When an action is harder to undo, Lovable explains it in the draft’s chat first and asks you to confirm.Backend changes you make in the main version
A change to how that shared backend is configured reaches your published app immediately, so Lovable makes these changes only in the main version of your project:- Backend functions. You can edit a backend function’s code in a draft, but Lovable deploys it only from the main version. The change takes effect after you accept the draft.
- Sign-in methods, including social login providers such as Google and Apple.
- Secrets, the values your app uses to reach other services.
- File storage settings, such as whether a storage bucket is public.
- Enabling AI features for your app. See AI features for your app.
- Payments, including enabling payments and creating products and prices, whether you use the built-in payments or your own Stripe account. See Add payments to your app.
- Email sending, including your email domain, email templates, and enabling or disabling emails from your app. See Send branded emails from your own domain.
- Enabling the built-in backend (Cloud), if your project doesn’t have it yet.
Add database tables and columns from a draft
Your app keeps its information in a database, organized into tables. A table of reviews, for example, has a column for the rating, one for the comment, and one for the product being reviewed. Every draft uses the same database as your project, so Lovable doesn’t add a table or a column while you work in a draft. It prepares the change and makes it when you accept the draft:- You ask for it in the draft’s chat. For example, “Add a reviews table with a rating, a comment, and the product it belongs to.”
- Lovable prepares the change and builds the pages that use it. The table doesn’t exist yet, so any page that reads or saves reviews shows an error in the draft’s preview. That error is expected, and it disappears when you accept the draft.
- You accept the draft. Lovable adds the table to your project’s database and describes what it added in your project’s main chat.
Work with drafts on your phone
You can create, switch between, and manage drafts from your phone. Open the drafts list in either of two ways:- Tap your project’s name at the top of the screen and select Drafts.
- Tap the button above the chat input, which shows Main or the name of the draft you’re in. It appears once the project has at least one draft.
Limitations
Keep these in mind while you work with drafts.- Drafts don’t support Git sync yet. A draft doesn’t appear as a branch in your connected repository, and its code reaches the repository only after you accept the draft.
- Some backend work has to happen in the main version of your project, including changes to your app’s sign-in methods, secrets, backend functions, payments, and email sending. See Backend changes you make in the main version.
Troubleshooting
If drafts aren’t working as expected, these are the most common causes.Accept or Update is grayed out
Accept or Update is grayed out
Update failed
Update failed
This draft has been accepted
This draft has been accepted
You're signed out of your app in a draft's preview
You're signed out of your app in a draft's preview
FAQ
Common questions about working with drafts.Does building in a draft affect my published app?
Does building in a draft affect my published app?
Can I reopen a draft after accepting it?
Can I reopen a draft after accepting it?
Is there a limit on the number of drafts?
Is there a limit on the number of drafts?
Who can work with drafts?
Who can work with drafts?
Do drafts use extra credits?
Do drafts use extra credits?
Can I use drafts in a project with a database?
Can I use drafts in a project with a database?
Is a draft the same as a branch?
Is a draft the same as a branch?
Can I use drafts with a connected Git repository?
Can I use drafts with a connected Git repository?
Why did my draft disappear?
Why did my draft disappear?