Lovable

Use these setups to transition your site to Ploy, but we highly recommend you migrate all pages to Ploy.

← Back to Fallback Origins


Find a stable Lovable origin URL

  1. Open your project in Lovable and click Publish in the top bar.
  2. Under Your website URL, copy the free subdomain Lovable assigned your project — it looks like your-project.lovable.app.
  3. This is the origin Ploy will proxy to, and it stays put even if you later add a custom domain in Lovable.

Lovable Publish panel showing the project's website URL field, a free *.lovable.app subdomain, which works as a stable Ploy fallback origin URL

Lovable Review and publish panel showing the project URL (ploy-demo.lovable.app), Public visibility, website info, security scan status, and the Publish button


Lovable as Default fallback proxy

Recommended over path-specific routing. Use the default fallback proxy when you want to start slow on Ploy — building out a few pages at a time (e.g. Ploy serves /blog) and deferring to Lovable for everything else during your transition. You can also keep this hybrid setup permanently if you need some backend functionality at other vendors. That said, we suggest fully transitioning to Ploy when you can — running a hybrid setup indefinitely means paying for unnecessary subscriptions.

Enable Default fallback proxy and point it at your Lovable origin URL (see above for how to find it).

Ploy Default fallback proxy setting enabled and pointed at a Lovable *.lovable.app origin URL, with Preserve Host header on and Enable analytics on

Incognito browser at https://ploy.computer/at/lovable/one showing a Lovable page served through a Ploy path-prefix proxy rule to a Lovable origin


Point select Ploy routes at Lovable origin

We don't recommend this method. Unlike the default fallback proxy above, path-prefix proxying only forwards requests under that prefix — it doesn't automatically catch Lovable's static CSS/JS assets, which are served from paths Lovable controls. To make this work, you have to prompt Lovable (or configure its Vite site directly) to serve static assets from a distinguishable prefix like /assets-lovable, then add that same prefix as a second Ploy proxy rule so those static assets also come through the proxy. If you skip that step, the proxied page will load without its styles or scripts. The complexity and web development knowledge required to execute this is out of scope for Ploy's audience, and we don't provide solutions engineering for other vendors' setups.

For any Ploy Routing Rules that need to proxy pages to your pre-existing Lovable site, paste that URL into the routing rules editor's Origin URL field. Use the fully-schemed Lovable URL without a trailing slash, for example https://your-project.lovable.app.

Ploy routing rule (Rule 3) with Path Prefix match /assets-lovable, Proxy action to a Lovable *.lovable.app origin URL, Host set to Preserve, and Analytics off

An additional rule to capture Lovable's static assets — but only if you prompted Lovable to serve them at a distinguishable prefix.

In this example, any route that matches the prefix will serve from Lovable — the page is served by Ploy but the content is proxied through to Lovable, so it renders as if it came straight from your Lovable site (see the demo screenshot under "Lovable as Default fallback proxy" above).


Troubleshooting

  • The Preserve Host header setting appears to have no effect on Lovable's ability to return content to the proxied pages. This may change over time depending on Lovable's configuration, so toggle it if your page isn't proxying as expected.