Lovable

Hosting

Last updated

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 for everything else

Recommended over path-specific routing. Send everything else to Lovable 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.

Edit the Everything else row (called All pages until you add a path) at the bottom of Path routing. Set Destination to Another URL and enter your Lovable origin URL (see above for how to find it).

Path routing on a domain's page with All pages sent to a .lovable.app URL and Keeps host header

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 Everything else row 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 path so those static assets also come through the proxy. If you skip that step, the proxied page will load without its styles or scripts. This setup takes some web development work, and Ploy support can't configure other vendors' projects for you.

For any path in Path routing that needs to proxy pages to your pre-existing Lovable site, select Add path, set Destination to Another URL, and paste that URL. Use the fully-schemed Lovable URL without a trailing slash, for example https://your-project.lovable.app.

Add a second path, such as /assets-lovable, to capture Lovable's static assets. Do this only if you prompted Lovable to serve them at a distinguishable prefix.

Path routing with /assets-lovable sent to a .lovable.app URL and Everything else sent to this site

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 for everything else" above).


Troubleshooting

  • The Keep the original domain in the Host header setting, under More options, 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.