Skip to content

serve static assets from the build manifest #16565

Description

@Nic-Polumeyv

Describe the problem

The static file server re-derives at request time what the build already computed, and each gap surfaces as its own bug:

Describe the proposed solution

Record the two things adapt time knows and currently discards (which files builder.compress produced variants for, and a content hash), then serve from the manifest: lookup and stream. Type from manifest.mimeTypes, Vary only where a variant exists, exact keys instead of path-guessing, no startup walk. sirv, totalist, @polka/url and mrmime drop out of adapter-node as a consequence. Exporting the server from @sveltejs/kit/node keeps adapter-node on one copy.

Alternatives considered

Upstreaming: sirv#173 open unreviewed since January, last release September 2025. Vendoring sirv's 249 lines as-is: fixes MIME but keeps the runtime re-derivation.

Importance

nice to have

Activity

  1. added a commit that references this issue on Sep 23, 2026
    68791be
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions