Blog on a website built with Lovable
Connect a Lovable website to Odiseo by pasting a prompt into its chat: a /blog with SEO, server-rendered and refreshed on publish.
Early access. Follow these steps if Lovable appears in your domain’s connection settings. The wizard generates instructions for your project to read the Odiseo API from its backend and maintain a local copy of the articles.
Before you start
- Edit access to the Lovable project.
- Lovable Cloud enabled. If it isn't, the prompt asks Lovable to enable it.
- Odiseo detects Lovable when you add the website. If it doesn't, choose Lovable in Website → Connection.
Steps
- In Odiseo, Website → Connection, choose Lovable and click Create key. Copy it: it is shown only once.
- Click Copy prompt for Lovable and paste it into the project chat.
- When Lovable asks for
ODISEO_API_KEYandODISEO_REVALIDATE_SECRET, paste them into its secure secrets form, never into the chat. Both values are in the Odiseo wizard. - When it finishes, Lovable gives you the
odiseo-syncfunction URL (https://….supabase.co/functions/v1/odiseo-sync). Paste it into Odiseo as the Revalidation URL. - Publish the website in Lovable and click Save and check in Odiseo. Odiseo sends a test notice and the function must answer.
What Lovable builds
| Piece | Purpose |
|---|---|
odiseo_articles | Copy of the published articles. Public read; only the backend writes. |
odiseo-sync | Function that verifies Odiseo's signature, answers seo_autopilot.ping and fetches changes from the order=updated feed of the API v1: new, edited and removed articles. |
| Hourly cron | Fallback in case a notice doesn't arrive. |
/blog and /blog/$slug | Listing and articles in the website's style, with canonical, Open Graph, JSON-LD and a real 404. |
sitemap.xml | The current URLs plus the blog ones. |
SEO: server rendering
If your Lovable project uses TanStack Start, check that the article is in the server's HTML response. If it uses Vite and React Router as an SPA, the page depends on JavaScript and the prompt generates a static sitemap. See the Odiseo hosted blog if you need a separate publishing destination.
Security
- The key can only read that website's published articles.
- The key and the secret live only in Lovable Cloud secrets: never in the chat, browser code or
VITE_variables. - The copied prompt contains neither value.
If something doesn't show up
- The blog is empty: ask Lovable to run
odiseo-syncand checklast_errorinodiseo_sync_state. - 401 from the API: the key was revoked or mistyped. Create another in Odiseo and ask Lovable to update the
ODISEO_API_KEYsecret. - “Save and check” fails: the function isn't published, has JWT verification on, or its secret doesn't match Odiseo's.
- An article is slow to appear: check the function logs and confirm that the scheduled job ran.
