Prompt to convert a Wix export to Next.js
This prompt asks an AI coding assistant to rebuild a WebExport copy of a Wix site as a Next.js App Router project. Wix pages are drawn by scripts, so the assistant works from the rendered HTML and CSS, converts layouts section by section, drops requests to Wix servers, and lists the backend features you must replace.
Last reviewed
Key facts
- Wix says standard sites cannot be hosted elsewhere, so the copy is a saved render of the public pages.
- Scripts and images load from parastorage.com and wixstatic.com until they are replaced.
- Bookings, Stores, Members and forms run on Wix and have no static equivalent.
- Test status: Next.js steps tested on a real export (Next.js 16.4.6), 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 Next.js.
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: Next.js
- Next.js App Router project in TypeScript, one page per route in app/<route>/page.tsx, shared header and footer in app/layout.tsx.
- Assets go to public/. Load needed scripts with next/script.
- Static export: [STATIC_EXPORT: yes or no]. If yes, set output to export and keep redirects and headers in the host's files.
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 open the project in your AI coding tool.
- Paste the prompt, approve the plan, then commit after each page that matches the live site.
What to expect from Wix to Next.js
A Wix export is rendered HTML with a large stylesheet and scripts that position and animate elements. Older Wix Editor sites often place elements with absolute positioning, which converts badly if the assistant tries to turn everything into flex or grid at once. Ask it to convert one section at a time and to compare against the live page.
The most useful early output is a list. Ask the assistant to inventory every Wix feature on every page, such as forms, bookings, the store and member areas, before it writes code. That list becomes your replacement plan.
Questions the assistant should ask you
- Which Wix features appear on each page, and what replaces each one?
- Which sections use overlapping elements that need a careful layout?
- May a section keep its original markup if it will not convert cleanly?
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 run build
npm run start
# pages in the export vs routes in the project
find exported-site -name "*.html" | wc -l
find app -name "page.tsx" | wc -l
# files that still refer to the old platform
grep -rlE "wixstatic.com|parastorage.com" app public | head- next build finishes with no type or lint errors, and every old sitemap route returns 200.
- With output set to export, the out folder holds one HTML file per route.
- 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
- Pages that still request files from Wix break when the Wix plan ends. The verify step greps for both Wix hosts.
- Layouts that look right on desktop and fail on phones. Test both widths after each section.
- Forms and booking widgets look finished but post to Wix. The prompt replaces them, and each replacement needs a real test.
Frequently asked questions
Will the assistant keep the Wix look exactly?
Close, not identical. It works from the rendered output, so you should compare every page with the live site and fix differences by hand.
Does this work for Wix Studio sites?
The saved copy works for Wix and Wix Studio. Wix’s developer docs also describe a separate Studio code export, which may suit you better if your site qualifies.
What about the Wix blog?
Public posts are saved as pages, and the prompt keeps their /post/ paths as routes. New posts need a fresh export or a content file.
Can I host the result on Vercel?
Yes. See Wix on Vercel for the config files and the checks to run first.
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.