Publish to Astro
Publish your WordPress site as a fast Astro frontend from UiChemy → Publish to Astro. Keep editing in WordPress, and deploy to Cloudflare, Vercel or your own server with a four-step setup.
Publish to Astro puts a fast Astro frontend in front of your WordPress site. You keep editing in WordPress. Astro is what your visitors get. It is a screen in the UiChemy plugin, and it needs UiChemy Pro.
It arrived in UiChemy 5.8.0 as Sync with Astro, and was renamed Publish to Astro in 5.8.1.
This is different from AI Website Creator's Astro export. That one publishes a new site you generated in UiChemy. Publish to Astro works on a WordPress site you already have.
At a Glance
| Item | Details |
|---|---|
| Where | UiChemy → Publish to Astro, under Manage |
| Added in | UiChemy 5.8.0 (renamed in 5.8.1) |
| Plan | UiChemy Pro |
| Who can use it | Administrators only |
| Default | Off. You switch it on once |
| Hosts | Cloudflare (recommended), Vercel, or Self-hosted |
| What UiChemy says it does | Pages, menus and the Theme Builder header and footer stay in WordPress |
Turn It On
Open Publish to Astro
Go to UiChemy → Publish to Astro. The screen reads "Sync with Astro is Disabled".
Enable it
Click Enable Sync with Astro. While it is off, none of its code loads on your site.
Publish to Astro before you enable it
You can switch it off again any time under UiChemy → Settings → Features, where it appears as Publish to Astro. Older versions of UiChemy call it Sync with Astro. If a live Astro site is using it, UiChemy asks you to confirm before you turn it off, because the site stops getting content, SEO and redirects as soon as you save.
Without UiChemy Pro, the screen shows a Pro upsell instead: Publish anywhere, Keep editing here and Fast and locked down. If Pro is installed but old, it asks you to update UiChemy Pro. Non-administrators see "Only a site administrator can set up or change Publish to Astro."
Set It Up in Four Steps
The setup wizard shows four steps at the top: Check site, Location, Host and Connect.
Step 1: Check Site
UiChemy checks that your site is ready. When everything passes, it says "Your install is ready" and "Ready to connect", with a count such as 12 / 12. Click Show 12 passed checks to read them. Click Continue.
Check your site: all checks passed
The list shows each check with a short reason. It includes WordPress version, PHP version, Pretty permalinks, HTTPS, REST API reachable, REST authentication, Application Passwords, Client IP for rate limits and No REST blockers.
The passed checks, expanded
If you would rather set it up yourself, click Skip, I'll set it up manually.
Step 2: Location
Choose Where should the site live?
| Option | What it means |
|---|---|
| Root domain | Astro serves the whole domain. |
| Subfolder | Astro serves /blog on this site. |
Click Next: pick where Astro runs.
Where should the site live?
Step 3: Host
Choose Where should Astro run?
Host: Cloudflare, Vercel or Self-hosted
| Host | What UiChemy says |
|---|---|
| Cloudflare (Recommended) | Free global edge network. One-click deploy. |
| Vercel | Push-to-deploy with preview URLs and edge caching. |
| Self-hosted | VPS, dedicated, or local. Install the agent or paste a URL. |
Cloudflare
Cloudflare: the token steps under How to create a token
Get a token
Click Get Cloudflare API token. Cloudflare opens in a new tab. Open How to create a token for the steps: click Create Token and pick the "Edit Cloudflare Workers" template, add one more permission (User, Memberships, Read), then under Account Resources choose your account and copy the token.
Paste and agree
Paste it into Cloudflare API token. Tick Remember token for one-click redeploys if you want to redeploy later without pasting it again. Tick the consent box that lets the deploy service use your token and read-only access to this site to build and publish it.
Deploy
Click Build and deploy to Cloudflare. The button stays pale until you paste a token.
Vercel works the same way. Click Get Vercel API token, paste it, tick the consent box, and click Build and deploy to Vercel.
Vercel: paste a token, agree, then deploy
Self-hosted
Pick this if you run your own server (for example Hetzner, DigitalOcean, RunCloud or Coolify).
Generate an Application Password
Click Generate Application Password. The command needs it so the Astro build can sign in to your WordPress.
Run the command
Connect to your server over SSH and paste the one command from the screen. The script installs Node, downloads the Astro starter, writes your .env file and runs the first build. Use Copy to copy it.
Start Astro
After the install, run node --env-file=astro-starter/.env astro-starter/dist/server/entry.mjs. On RunCloud, Coolify or Dokploy, add the values from .env as the app's environment variables instead. The script prints the PM2, Nginx and Caddy steps when it finishes.
The self-hosted command contains secrets for your site. Do not paste it into chats, tickets or public places.
The Custom theme box explains how to give the blog, archive, search and 404 pages your own look: add one CSS file under src/styles/ in your server's copy of astro-starter/. UiChemy says its bridges keep working. Use Need just the .env block? if you only want the environment values.
Step 4: Connect
The last step is Connect the pieces. It shows Add one DNS record. The DNS target comes from your deployed Astro address, so deploy in the Host step first. After the build finishes, Astro fills the record in here for you. Click Finish setup.
Connect the pieces: the DNS record appears after you deploy
While It Builds
While your site builds, the screen shows the build as a checklist of steps, with a spinner on the current one. The list scrolls inside a fixed height and follows the newest step until you scroll up to read. Before the first step arrives it says "Waiting for the build host…". If the build finishes but the deploy server does not send a link back to your WordPress, the screen says so and asks you to run the setup again to connect the site.
After Setup
- Your Astro site is live. After a deploy, a card shows your site's address with Visit site and Copy link.
- Run setup again. Once set up, the screen opens on your settings. Click Run setup again in the header to go back through the wizard, and Back to settings to return.
- Stop using Astro. Once a site is deployed, Stop using Astro shows next to Run setup again in the header (UiChemy 5.8.4). It opens a confirmation on the Connection tab.
- Turn it off. The Turn off button asks "Turn off Publish to Astro?" and explains that syncing to your Astro site stops. A site you already published stays online, and you can turn it back on from the same tab.
- Revoke access. The consent box says you can revoke the deploy service's access any time with Disconnect on the Connection tab.
Troubleshooting
| What you see | What to do |
|---|---|
| "Sync with Astro is Disabled" | Click Enable Sync with Astro, or switch it on under Settings → Features. |
| The Pro upsell panel | Publish to Astro needs UiChemy Pro. |
| "Update UiChemy Pro" | This copy of UiChemy Pro does not include Publish to Astro yet. Update Pro, then reload the page. |
| "Only a site administrator can set up or change Publish to Astro" | Sign in as an administrator. |
| "Publish to Astro is unavailable", or "Publish to Astro is incomplete" | Reinstall or update UiChemy Pro, then reload the page. |
| "Finishing the switch to Publish to Astro" | The older separate plugin is being turned off for you. Reload the page. Your settings carry over. |
| "Could not load this screen" | Click Try again. |







