Repository navigation
Conversation
Fixes solidjs#2386 Amp-Thread-ID: https://ampcode.com/threads/T-01a2138a-b4be-73c5-ac4f-7f931c42ba6b Co-authored-by: Jérémy Chatard <jchatard@breek.fr>
👷 Deploy request for solid-start-landing-page pending review.Visit the deploys page to approve it
|
🦋 Changeset detectedLatest commit: c9fe688 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 |
commit: |
lxsmnsyc
approved these changes
Nov 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2386.
Server function ids started with
xxHash32of the module's absolute path, so the same code built in two directories got different ids. Machines that each build one deploy in their own directory then served different client chunks, even with the sameskewProtection.buildId: a page rendered by one machine called another with ids it did not know (500 invalid server function), and most of its_build/assetsURLs were 404 there.The ids now hash the module path relative to the Vite root, with
/separators so Windows builds match too. The dev lookup (solid-start:server-fn-lookup) uses the same hash to find the module.compile()takes the hash from the plugin and keeps hashingidwhen it is called on its own.Tests
directives/index.spec.ts: the same file under two roots compiles to the same client code, and a different file still gets a different id. It fails without the change.pnpm typecheck,pnpm format:check, and the@solidjs/startVitest suite (324 tests) pass..output/public(391 files), and each server runs the other build's server function calls.Ids change once for every app: a page loaded before upgrading gets
409on its next call ifskewProtectionis on, as with any deploy.