Publish an Astro build

Export static HTML from an Astro project and share the generated site through Sunrose.

Use static output

Sunrose needs generated HTML and assets. Astro pages that require on-demand server rendering, API endpoints, or server islands need a running server and cannot be hosted here as-is.

Use Astro’s static output and ensure the routes you want to share are prerendered. If you changed the output directory, use that folder in the next steps.

Build and preview locally

In a project with the standard Astro scripts, run the following commands. Astro’s default build output is dist. Check the local preview before uploading.

Shell
npm run build
npm run preview

Upload the static files

Choose Upload a site and select the generated dist folder, or ZIP its contents. Include index.html and all generated folders and assets. Do not upload the source project or node_modules.

Open the published preview, visit inner pages directly, and check images and any integrations. Create a client review link when the version is ready for feedback.

Astro deployment reference

For output options and prerendering requirements, use Astro’s official deployment documentation.

Upload a site
Sunrose

Sign in to Sunrose.