Welcome! New to Spiderz? Get 40% off your first purchase.

Your AI-built site works locally but fails online

Troubleshooting 6 min ·

Find out why your site worked in the preview but fails on your domain, from a blank page to a form that doesn't send. The cause is usually one address or setting, not the whole site, so check before you let your AI rebuild anything.

1 Check the domain shows the right files

Uploading to the wrong place changes nothing at your address, so check this first.

  • DNS: does the domain point to your Spiderz hosting? Check both the IPv4 (A) and IPv6 (AAAA) records; an old AAAA record can send some visitors to the previous host.
  • Document root: are the files in the domain's folder, usually public_html, with index.html directly inside it? A ZIP often adds an extra folder. Publish an AI-built static website on Spiderz shows the right layout.
  • Caching: after a recent change, some visitors may still get the old version for a few hours. Try a private window before changing DNS again or deleting files.

2 For a blank page, read the browser's errors

Open the browser's developer tools, select Console and Network, then reload the page. Look for the first error:

  • A JavaScript or CSS file is missing (404). The upload is incomplete or the path is wrong. Online, capital letters matter: Logo.png isn't logo.png.
  • A script request returns a web page instead of code. A route rule is sending requests for files to index.html.
  • A JavaScript error. The code stops even though every file loaded.
  • A request to localhost or a preview address. The build still has development settings.

If you uploaded the source folder instead of a build, follow Publish an AI-built React or Vue frontend on Spiderz.

When you share errors, share the address, status and message only. A full network export includes sign-in cookies and personal data.

3 If inner pages fail when refreshed

Open the failing address directly in a private window. If the home page works but /about gives "Not Found" before the app loads, the site handles its pages in the browser, and the server needs a rule to send those addresses to index.html. Step 6 of the React or Vue tutorial has the rule and how to add it safely.

If the site has separate HTML pages instead, check that the file exists and that the link matches its name exactly.

4 If the frontend can't reach its backend

Look at the address of the failing request in Network:

  • localhost means the visitor's own computer. Use the backend's real https:// address.
  • A preview address may stop working once you leave the AI tool.

If the address is built into the frontend, fix it, build again and upload. Changing a hosting setting won't update it.

A CORS error means the backend doesn't yet accept requests from your domain. Add https://yourdomain.com to its allowed origins; http, https and www. count as different. A backend error can also look like a CORS error, so check the response too. MDN explains CORS

A mixed-content warning means an https:// page is loading something over http://. Change that address to https://. MDN on mixed content

5 If a form, sign-in or saved record fails

Follow the request to where it should end up. A "Message sent" on screen doesn't prove the message was delivered.

  • Forms: did the browser send the request, did the backend accept it, and did the email service accept the message? Check the service's dashboard or logs.
  • Sign-in: add the live domain to the sign-in provider's allowed return addresses. www and the bare domain may need adding separately.
  • Saved records: check the app is connected to the live database, not the preview's sample data, and that its tables exist.

Handle API keys, environment variables and databases explains which settings belong where.

6 If the server returns an error

A server error needs the server's log. In cPanel, check Errors for messages at the time of the failure. Keep detailed errors away from visitors.

Then check:

  • the app's runtime and version match what's installed for it;
  • its dependencies are installed and its settings are in place;
  • folders it writes to have the right permissions. Fix the one folder named in the error, not the whole site;
  • after a settings change, the app was restarted.

If the error started after a database change, check the code and database are from the same version. Putting old files back won't undo it.

Still stuck? Ask your AI with the evidence

Fill in the brackets and paste:

The project works in development but fails online. Address: [address]. Action: [what I did]. Expected: [result]. Actually: [what happened]. Error: [error, with private values removed]. I published it by [method]. The last change was [change]. Inspect the project and tell me the most likely cause to check first, based on evidence. Don't redesign the site, replace services, reset data or change unrelated settings. Explain the fix, how to test it, and what would show the diagnosis is wrong.

Make one change at a time, repeat the same test, and note the result. When it's fixed, test the rest of that visitor journey too.

When to contact Spiderz Support

Contact Support if the hosting itself seems to be the problem: the account is unavailable, you can't sign in, or your AI finds the site needs something the hosting doesn't provide. Include the domain, the time, the failing address and the error. Never include passwords or keys.

Fixing the app's own code stays with you and your AI. Add each fix to your hosting handover, so the next release keeps it.

Did this solve it?

Reference docs