Publish a Vite build

Build a static Vite project locally and upload the output folder to Sunrose for preview and client review.

Build the project

For a project with the standard Vite scripts, run the build command from its project folder. The default output directory is dist; use your configured build.outDir if you changed it.

Shell
npm run build
npm run preview

Check the built site

Open the local preview and check navigation, images, and fonts. A site published at the root of its glimpse.page address normally uses Vite’s default base of /. Remove a repository-specific base path if it is no longer appropriate.

Sunrose serves static files. A Vite SSR project needs a static export or another host for its server. External APIs must be reachable from your reviewer’s browser.

Upload the output folder

Choose Upload a site and select dist, or ZIP its contents with index.html at the root. Upload the generated assets too, rather than only the HTML file.

After publishing, test direct visits and reloads on inner routes as well as clicking through from the homepage. Then create a client review link if you want feedback.

Vite build reference

These commands assume the standard build and preview scripts. Check the official Vite deployment guide if your project uses different settings.

Upload a site
Sunrose

Sign in to Sunrose.