Repository navigation
fix: infer prerendered MIME types from generated files - #17381
Conversation
🦋 Changeset detectedLatest commit: 1c74942 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
|
Install the latest version of pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/1c7494291b67ed4d451b53a013bca2252779dbb8Open in Note This PR is from a fork. A maintainer must approve approve each commit before it can be built and installed. |
|
@svelte-triage-bot do we need the additional test in adapter-node or does the one in core suffice? asking because there is no actual code change in adapter-node itself |
|
(but answered on the issue #17380 (comment) will dig into why) (I think I would still be in favor of removing the node test to not make everything take even longer) |
|
Tested this on a production site that hit #17380. The site is fully prerendered, on Kit 3.0.0 and adapter-node 6.0.0, and served through a custom server that wraps I applied this PR's
Thanks in advance for the quick fix! |
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @sveltejs/kit@3.1.0 ### Minor Changes - feat: support `report-sha256`/`report-sha384`/`report-sha512` CSP hash-reporting keywords ([#17398](#17398)) - feat: emit a `sveltekit.endpoint` span for `+server` handlers when server tracing is enabled ([#17325](#17325)) ### Patch Changes - fix: don't treat every module as server-only when the project is inside a `server` directory ([#17376](#17376)) - fix: continue deployment recovery when service worker updates fail ([#17440](#17440)) - fix: infer prerendered MIME types from generated files ([#17381](#17381)) - fix: leave generated files alone when their contents are unchanged ([#17310](#17310)) - fix: leave focus in the parent page when an app in an unfocused iframe starts or navigates ([#17297](#17297)) - fix: don't warn about Storybook's Vite plugins that use `transformIndexHtml` ([#17373](#17373)) ## @sveltejs/adapter-cloudflare@8.0.1 ### Patch Changes - fix: start the dev server on runtimes such as Deno that define `caches` as a getter-only global ([#17401](#17401)) - fix: start one platform proxy for concurrent Vite servers and keep it alive until the last one closes ([#17368](#17368)) - fix: support `Span#setStatus` and `Span#updateName` on local emulation of Cloudflare `tracing` ([#17400](#17400)) - Updated dependencies: - @sveltejs/kit@3.1.0 ## @sveltejs/adapter-vercel@7.0.1 ### Patch Changes - fix: keep the detected Bun minor in the resolved runtime ([#17331](#17331)) - Updated dependencies: - @sveltejs/kit@3.1.0 ## @sveltejs/package@3.0.1 ### Patch Changes - fix: emit component types for the installed Svelte version, rather than the oldest one the `svelte` dependency range allows ([#17330](#17330)) --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Tee Ming <chewteeming01@gmail.com>
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [@sveltejs/kit](https://svelte.dev) ([source](https://github.com/sveltejs/kit/tree/HEAD/packages/kit)) | [`3.0.1` → `3.1.0`](https://renovatebot.com/diffs/npm/@sveltejs%2fkit/3.0.1/3.1.0) |  |  | --- ### Release Notes <details> <summary>sveltejs/kit (@​sveltejs/kit)</summary> ### [`v3.1.0`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#310) [Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@3.0.1...@sveltejs/kit@3.1.0) ##### Minor Changes - feat: support `report-sha256`/`report-sha384`/`report-sha512` CSP hash-reporting keywords ([#​17398](sveltejs/kit#17398)) - feat: emit a `sveltekit.endpoint` span for `+server` handlers when server tracing is enabled ([#​17325](sveltejs/kit#17325)) ##### Patch Changes - fix: don't treat every module as server-only when the project is inside a `server` directory ([#​17376](sveltejs/kit#17376)) - fix: continue deployment recovery when service worker updates fail ([#​17440](sveltejs/kit#17440)) - fix: infer prerendered MIME types from generated files ([#​17381](sveltejs/kit#17381)) - fix: leave generated files alone when their contents are unchanged ([#​17310](sveltejs/kit#17310)) - fix: leave focus in the parent page when an app in an unfocused iframe starts or navigates ([#​17297](sveltejs/kit#17297)) - fix: don't warn about Storybook's Vite plugins that use `transformIndexHtml` ([#​17373](sveltejs/kit#17373)) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xNjUuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjE2NS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
builder.mimeTypesunless another asset supplies it.Fixes #17380