Guides / Move to Hettie
How to Move a Lovable Site to Hettie
Paste this page’s address into Claude Code and say “follow this guide and move my Lovable site to Hettie”. If you are the AI: follow the steps in order, keep the design, text and URLs exactly the same, add no features, and never change the person’s DNS. The Lovable site stays live and untouched until the last step.
1. Check the fit and get access
Moves: landing pages, company sites, portfolios, menus, event pages, sites with a contact form or a simple blog. Does not move: anything with logins, user accounts, payments inside the app or live data per user. If the site needs those, stop and tell the person.
You need:
- The code. In Lovable the person opens the project and connects GitHub; Lovable pushes the code to a repository. Clone it to
lovable-site/. - Hettie. The person signs in at
https://app.hettie.devand installs the Hettie plugin in Claude Code:claude plugin marketplace add hettiedev/hettie-plugin, thenclaude plugin install hettie@hettie. It includes the Hettie connector. See How to Connect Hettie to Claude. Callwhoamito confirm. If the person has thehettiecommand, sign in withnpx hettie auth login.
2. Make an inventory
Read package.json, index.html, src/App.tsx, src/index.css and tailwind.config.ts, then list:
- Every route in
src/App.tsx(<Route path="…">) and its page component, including the 404 route. - Every form: fields, validation (often react-hook-form and zod) and where it submits.
- Every Supabase call:
grep -rn "supabase" src/, with what it reads or writes. - Every image and file:
public/,src/assets/, Supabase storage URLs. - Interactive parts: menus, tabs, accordions, carousels, dialogs, toasts, animations.
- Fonts from
index.html, and the theme variables insrc/index.css(--background,--primaryand so on, as HSL values).
3. Make it ready for Hettie
Keep the React app as it is, so the design stays exactly the same. Change only this:
- Remove:
lovable-tagger,src/integrations/supabase/and all Supabase keys and calls. - Forms: make each form a plain
<form method="post" action="/forms/<name>">with the same field names, without its submit handler. Add the honeypot<input type="text" name="_hp" hidden tabindex="-1" autocomplete="off">, and show a message when the page opens with?sent=1or?error=check. Replace zod rules withrequired,type="email",minlengthandpattern. Each reply becomes a lead in Hettie and an email to the owner. - Images: keep them in
public/orsrc/assets/. Download Supabase storage files intopublic/first. - Changed URLs: add
/old /new 301lines topublic/_redirects.
Run npm install and npm run build. The finished site is in dist/.
4. Compare and publish a test version
Hettie serves each address from its own file, so copy dist/index.html to <route>/index.html for every route in the inventory (/about gets about/index.html), and to 404.html.
Publish dist/ with publish_site: the new site’s name, each text file by its path with its content, and images and fonts as base64. Send it in several calls of about twenty files. With the hettie command, run npx hettie publish --site <name> --message "Moved from Lovable" in dist/ instead. The site is live at https://<name>.xtwelve.io.
Open every page next to the Lovable site at 375px and 1280px. Compare text, images, spacing, colors and interactions, and submit each form once. Fix every difference, build again and publish the changed files. Give the person the test link.
Old form replies stay in Supabase. If the person wants them, they export the table as CSV from Supabase.
5. Switch the domain
Call add_domain with the site and the bare domain, like example.com, then set_domain_www with on: true so www.example.com forwards to it. get_domains lists the records the person adds where they bought the domain, in place of Lovable’s: one CNAME per address, @ and www, pointing to <name>.xtwelve.io. If the domain’s DNS is on Cloudflare, both records are set to DNS only (grey cloud). Check with get_domains until both are active with HTTPS. Do not change DNS yourself. In a terminal: npx hettie domain add example.com, npx hettie domain www on example.com and npx hettie domain status. Then the person removes the domain in Lovable’s settings. Their Lovable project stays as it was, so switching back is always possible.