Skip to content

fix(server): set explicit Content-Type headers for static file serving - #6

Merged
Nxssie merged 1 commit into
mainfrom
feat/merge-and-slim-image
Jul 3, 2026
Merged

Nxssie merged 1 commit into
mainfrom
feat/merge-and-slim-image

Conversation

@Nxssie

@Nxssie Nxssie commented Jul 3, 2026

Copy link
Copy Markdown
Owner
  • Bun.file() passed to Response constructor didn't always emit Content-Type
  • explicitly pass file.type for static assets, text/html for SPA fallback
  • fixes MIME type error preventing module scripts from loading

- Bun.file() passed to Response constructor didn't always emit Content-Type
- explicitly pass file.type for static assets, text/html for SPA fallback
- fixes MIME type error preventing module scripts from loading
@Nxssie
Nxssie merged commit bf4d665 into main Jul 3, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant