Skip to content

vite preview polish#2105

Merged
birkskyum merged 4 commits into
solidjs:mainfrom
huseeiin:better-way-to-disable-compression
Jul 16, 2026
Merged

vite preview polish#2105
birkskyum merged 4 commits into
solidjs:mainfrom
huseeiin:better-way-to-disable-compression

Conversation

@huseeiin

Copy link
Copy Markdown
Contributor

this fixes an edge case with mp4

PR Checklist

Please check if your PR fulfills the following requirements:

  • Addresses an existing open issue: fixes #000
  • Tests for the changes have been added (for bug fixes / features)

What is the current behavior?

What is the new behavior?

Other information

@changeset-bot

changeset-bot Bot commented Mar 15, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6546b8a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@solidjs/start Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify

netlify Bot commented Mar 15, 2026

Copy link
Copy Markdown

Deploy Preview for solid-start-landing-page ready!

Name Link
🔨 Latest commit 6546b8a
🔍 Latest deploy log https://app.netlify.com/projects/solid-start-landing-page/deploys/6a59420fa72270000815d7eb
😎 Deploy Preview https://deploy-preview-2105--solid-start-landing-page.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@pkg-pr-new

pkg-pr-new Bot commented Mar 15, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/solidjs/solid-start/@solidjs/start@2105
npm i https://pkg.pr.new/solidjs/solid-start/@solidjs/vite-plugin-nitro-2@2105

commit: 6546b8a

@themavik themavik left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review

Scoping content-encoding: identity to HTML responses only makes sense — the previous behavior disabled compression for all preview responses. Now only SSR HTML gets identity; other content types (JSON, assets, etc.) can be compressed. The content-type?.startsWith('text/html') check handles null safely. LGTM.

@huseeiin huseeiin changed the title fix: better way to disable compression vite preview polish Apr 3, 2026
@birkskyum
birkskyum force-pushed the better-way-to-disable-compression branch from 01c671d to 6546b8a Compare July 16, 2026 20:41
@birkskyum
birkskyum merged commit 25769f2 into solidjs:main Jul 16, 2026
10 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.

4 participants