Hosting. Domains. Your next step online.

Deploy a Vite website to cPanel

How-to Guides Websites & files

Turn a local preview into a real website. We built and published a small Vite starter on FixusHost, using static files you can inspect and deploy yourself.

Before you start

You’ll need a cPanel account, a domain or subdomain to publish to, and Node.js 22.12 or later on your computer. The demo has no login, database or API. If your AI-built project relies on any of those features, keep its existing backend connected and verify it separately.

  1. Build the project locally

    Unzip the starter and open a terminal in the folder that contains package.json. Run:

    npm ci
    npm run build
    npm run preview

    Open the local preview URL shown in your terminal. Click Test this page and confirm it changes the status text. Stop the local preview when you’re done.

    Using an AI builder? Export the project, check its build command and verify that the build produces static files. This example uses Vite’s dist folder and sets base: './' so its assets work in the demo’s subfolder.

  2. Choose the folder cPanel serves

    In cPanel, open Domains and locate the target domain’s Document Root. Open that folder in File Manager. To practise inside a folder, create an empty folder beneath that root. The live example is in public_html/launch-check-demo.

    If the destination already contains a website, start in a fresh folder and keep the original site available.

  3. Upload the built files

    Zip the contents of dist with index.html at the top level. Include the assets folder. In File Manager, select Upload, choose the ZIP and use Extract in your chosen folder. Verify that index.html sits beside assets. Keep project source, environment files and node_modules on your computer.

    Troubleshoot File Manager uploads

  4. Open the public URL and test it

    Open your URL in a private window. Confirm the page has its styling and that Test this page works. If your app has its own routes, open a deep link directly and refresh it. A route that only works after navigation needs the correct routing setup for your app and host.

    Run Launch Check on the hostname for public DNS and HTTPS, then test the full URL to verify the folder or route you deployed.

References. Vite’s static deployment guide, cPanel File Manager and Lovable’s deployment and ownership guide.