Prompt to convert a Wix export to Astro
This prompt asks an AI coding assistant to rebuild a WebExport copy of a Wix site in Astro. The assistant works from the rendered HTML and CSS, converts one section at a time, removes requests to Wix servers, and lists the Wix backend features, such as forms, bookings and members, that need an outside replacement.
Last reviewed
Key facts
- Wix says standard sites cannot be hosted elsewhere, so the saved copy is a render of the public pages.
- Astro supports .astro, .md, .mdx and .html pages in src/pages.
- The saved copy loads scripts and images from parastorage.com and wixstatic.com until you replace them.
- Test status: Astro steps tested on a real export (Astro 7.4.13), Wix cleanup not yet tested.
The prompt
Paste this into your AI coding assistant with the unzipped export open, and replace the placeholders in square brackets.
You are helping me move a static export of a Wix site to Astro.
CONTEXT
- ./exported-site is a WebExport download of my Wix site: HTML, CSS, JavaScript, fonts and images.
- Live site for comparison: [LIVE_URL]. Final domain: [DOMAIN]. Host: [HOST: Vercel, Netlify, Cloudflare Pages, Amazon S3 or Nginx].
TARGET: Astro
- Astro project, one .astro file per page in src/pages with the old paths, one layout in src/layouts, repeated parts as components.
- Assets and untouched scripts go to public/. Delete the scaffold's placeholder src/pages/index.astro before adding the converted home page.
- Output is static, and astro build must write every page to dist/.
WIX-SPECIFIC CLEANUP
- Work from the rendered HTML and CSS. Older Wix Editor layouts often use absolute positioning, so convert one section at a time and compare.
- Inventory Wix features on every page: forms, bookings, store, members. Write the list to MIGRATION_NOTES.md before you change code.
- Replace forms with [FORM_ENDPOINT]. Do not rebuild bookings, store or members.
- Search for wixstatic.com and parastorage.com. Download or replace each hit, and report scripts you cannot replace.
RULES
- Keep the design and every URL path. List path changes in REDIRECTS.md.
- Do not invent content, prices or links. Report gaps in MIGRATION_NOTES.md.
- Build after each step and ask before deleting a script or stylesheet.
START
Inventory the folder, show me a plan, wait for my go-ahead, then convert the home page only.How to run it
- Unzip the download to ./exported-site and create the Astro project beside it.
- Paste the prompt, approve the plan, convert the layout and home page, then the rest in small groups.
What to expect from Wix to Astro
Wix pages come with large stylesheets and scripts that place and animate elements. Astro helps because you can start with the rendered HTML as plain pages, confirm the site builds, and then clean up one section at a time. You are never stuck with a half-converted site, since each commit builds.
Layout is where Wix conversions go wrong. Ask the assistant to convert a section, build it, and compare it with the live page at two widths before it moves on. If a section will not match, keeping its original markup and CSS is a fine answer.
Questions the assistant should ask you
- Which pages are the most complex, so they can be converted last?
- Which Wix scripts are you ready to remove once the layout matches?
- Where should forms and bookings point?
Verify the result
Run these from the project folder after each batch. The last command lists files that still refer to Wix.
npm install
npm install @astrojs/check typescript # astro check asks for these on first run
npx astro check
npm run build
npx astro preview
# files that still refer to the old platform
grep -rlE "wixstatic.com|parastorage.com" src public | head- astro check exits with code 0 and dist holds a page for every old sitemap route.
- astro preview matches the live site at two widths.
- Confirm no request goes to wixstatic.com or parastorage.com in the network tab.
- Open every page at phone and desktop width.
What can go wrong
- Requests to Wix hosts remain after conversion. Grep for both hosts before you deploy.
- Positioning copied from the render breaks at other screen widths. Test at phone width for each section.
- Member-only pages are not public, so the saved copy has nothing to convert. Plan them separately.
Frequently asked questions
Can I keep my Wix animations in Astro?
Only by keeping the saved scripts, which still carry Wix’s runtime. Many owners rebuild simple effects with CSS and keep scripts for the complex ones.
Will I need to rewrite the CSS?
Not at first. The saved stylesheet works with the saved markup. Rewrite it in small steps once the site builds and matches.
What replaces Wix Bookings?
A booking service that offers an embed or a link. The assistant lists where Bookings appears so you can plan the swap.
Is there an easier route?
Hosting the saved copy as it is. See Wix on Netlify. Rebuild only if you want a code base you can edit.
Official documentation
Free tools for this job
- Wix Site Downloader GuideInteractive guide explaining what you can export from Wix and how WebExport helps.
- No-Code Platform DetectorInstantly detect if a site is built with Webflow, Framer, Squarespace, Wix, or Shopify.
- No-Code Asset Path NormalizerRewrite CDN URLs to local relative paths for offline and self-hosted deployments.
- Redirect Map BuilderBuild an old-to-final redirect mapping from URL lists.
Start with the files
The prompt works on a WebExport download. Paste your public Wix URL into the export form and get a ZIP. The Free plan covers 1 site, 5 exports a month, 15 pages and 20 MB per export. Professional is a $9.99 one-time purchase with unlimited pages.