# Share a SvelteKit Build — A Preview Link From adapter-static

Canonical: https://commareports.com/share-sveltekit-site
Published: 2026-09-12

> adapter-static gives SvelteKit a build/ folder you can host anywhere. Publish it to Comma for a preview URL where the app hydrates and reviewers comment on the rendered page.

# Share a SvelteKit build

`npm run dev` is a preview for exactly one person. The alternatives are a
deploy or a screenshot, and a screenshot of an app is a claim you cannot
click.

## Build a static output

```js
// svelte.config.js
import adapter from "@sveltejs/adapter-static";

export default {
  kit: {
    adapter: adapter({ fallback: "index.html" }),
    prerender: { entries: ["*"] },
  },
};
```

```bash
npm run build
# → build/
```

Opening `build/index.html` from the Finder shows unstyled markup: SvelteKit
references `/_app/immutable/…` absolutely, and a `file://` origin resolves
that against your filesystem root. Same root cause as
[a shared report with no CSS](/html-report-broken-css).

## Publish build/

Drag the folder into [the app](https://commareports.com/), or zip and POST it:

```bash
cd build && zip -qr ../site.zip . && cd ..

curl -fsS -X POST https://commareports.com/api/v1/reports \
  -H "Authorization: Bearer $COMMA_API_TOKEN" \
  -F "title=Preview — $(git rev-parse --abbrev-ref HEAD)" \
  -F "visibility=team" \
  -F "bundle=@site.zip"
```

`cd` into `build` first so `index.html` is at the archive root —
[sharing a folder of HTML files](/share-html-folder) covers why.

## Why a review link beats a staging deploy

- **Anchored threads** — design and copy feedback attaches to the element on
  the rendered page instead of arriving as a screenshot with an arrow on it.
  See [commenting on HTML](/comment-on-html).
- **Revisions at one URL** — one report id per branch; the PR link never goes
  stale.
- **Access per report** — private, team-only, domain-gated, or an unlisted
  link for a client. See the [sharing model](/docs/sharing).
- **No environment to keep alive** — no staging slot, no preview quota, no DNS.

## Limits

- **Assets: 25 MB per file, 250 MB and 500 files per report.** Strip source
  maps before zipping if the file count is close.
- **Entry HTML: 5 MB.**
- **60 requests/minute per token.**

## Try it

Comma is free — unlimited reports, unlimited commenters, unlimited revision
history.

**[Publish a build preview →](https://commareports.com/)**

### Related

- [Share a Vite build](/share-vite-build) · [Share an Astro site](/share-astro-site)
- [Share a Next.js static export](/share-nextjs-static-export) · [Share a Nuxt static site](/share-nuxt-static-site)
- [Share a folder of HTML files](/share-html-folder) · [Share an HTML file with a client](/share-html-file-with-client)
