Skip to content
Docs
Start free

Features that need a server

Some apps run part of their code on a server: to send an email, ask an AI, save data or take a payment. When you bring in an app like that, your design comes in whole and those parts are switched off at first. Many of them can come back as server tasks, your code running on Xodia with your keys kept sealed. This page shows what switched off means and how to bring a feature back.

On this page

What switched off meansLink to this section

A switched-off part is still in your app's design, but it no longer does its job. The button, form or section stays on the page; when it would have asked the server for something, nothing answers. Xodia lists each one, so you know what to connect again.

Today this happens when you bring in a Lovable app that runs code on a server and choose Bring in my design. See Bring in an AI-built app that runs server code.

The five kindsLink to this section

Xodia sorts each switched-off part into one of five kinds, and uses these words on the import card:

In XodiaWhat it did
Sends an emailSent a message, such as a contact form or a sign-up confirmation
Asks an AISent a question to an AI service and showed the answer
Reads or saves dataRead from or wrote to a database
Takes a paymentStarted a payment or a checkout
Needs a serverAnything else that ran on the server, listed with its own name

What you see in XodiaLink to this section

  • The Switched off list on the import card: each part with its kind and name, the page it is used on (Used on, with a link that opens the page) or On every page, and what you can do about it.
  • A quiet note on the canvas when you use a switched-off part in the preview, such as Sends an email is switched off here (it needs a server).
  • A line in the Publish menu, under your live site: 3 features are switched off on this site. Visitors can't use them. See the list opens the same list again.

An app brought into Xodia with its server parts switched off, open in Design. The card at the top right says Made your app ready to edit in Xodia: it now runs right in your browser, set up to build and preview there, parts that only ran on a server removed and every page listed, with Undo the conversion. Under Switched off: Sends an email: sendContactMessage, used on /visit; Asks an AI: askMenuAssistant, used on /menu, each with what to do and the note that visitors see the app's own error when they use it; 1 address that answered requests was removed; and a page that asks /api/order, which no longer exists.

Note:

The Publish menu line is a reminder. It never stops you from publishing.

The Publish menu in Xodia before the site is live: Go live, which puts the site on its public address, rise-bakery.xodia.site, then the line 3 features are switched off on this site. Visitors can't use them, with See the list, then Save a restore point.

What your visitors seeLink to this section

  • Every page still shows.
  • Where a page read data from the server, it shows as if there were no data yet. A sign-in check answers as if nobody is signed in.
  • A part that only a button or a form uses shows the app's own error message when someone uses it. The list says so: Visitors see the app's own error when they use this.

Bring a feature backLink to this section

There are a few ways, depending on what the feature needs:

Most features: bring it back as a server taskLink to this section

Features that send an email, ask an AI, take a payment or call another service can run again as server tasks. On the import card, they show as 1 feature came back as a server task, with the keys they need. They run once server tasks are on for the site. For an app brought in earlier, the card shows Turn on with server tasks: choose it and Xodia brings them back in one change you can undo in Activity.

  1. Open Server tasks in the top menu and choose Turn on.
  2. Add the keys the card lists in Project settings, Keys and secrets.
  3. Try the feature in the preview, then go live.

A feature that reads the app's own database can't come back this way: the card says so. Keep its data in the Xodia database or your own Supabase instead. See the Xodia database.

A contact, quote or sign-up form: use Xodia FormsLink to this section

Xodia Forms receives the form, emails your team and keeps the messages in the Content tab, with no server of your own. Ask your AI to connect the form to Xodia Forms; the list suggests it for every form that sent an email. See Xodia Forms.

A service with a public key: call it from the pageLink to this section

Some services are made to be called straight from the browser with a public key, one that is safe for anyone to see. Your AI can connect a feature like that from the page itself.

Your own serverLink to this section

A secret key must never be in your site's code. If you'd rather keep a feature on a server of your own, outside Xodia, ask your AI to connect the feature to it once it is running.

What Xodia never doesLink to this section

  • Xodia never runs a feature's code until you turn server tasks on for the site.
  • Xodia never puts a secret key in your site's code, and your AI is told never to add one. Keys live in Keys and secrets.
  • Xodia checks each new version of your server tasks before it goes live, and holds one that looks unsafe for a person to look at.

Good to knowLink to this section

  • Switching the parts off is part of the import, in one change. Undo the conversion on the import card takes it all back.
  • Your AI can read the list: each project tells it which features are switched off. See What your AI can and can't change.
  • When in doubt, ask your AI which way fits a feature.
  • If most of your app is server code, a tool that runs it may suit you better. See AI app builders where you own the code, compared, with what each one runs.

The AI website builder for real code. Made by Zuzo Studio LLC.

Claude, Cursor, Lovable, Bolt, Replit, Webflow, Framer and other product names are trademarks of their owners. Xodia is not affiliated with them.