Conversation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Vercel's Amazon Linux 2 has GLIBC 2.26, but rspack's gnu binary requires 2.35. Fix by: - .npmrc: install both glibc and musl native binaries - vercel.json: set NAPI_RS_NATIVE_LIBRARY_PATH to musl binary (statically linked, no GLIBC dependency) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The relative path didn't work because binding.js resolves from its own directory. Use require.resolve() to get the absolute path. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
.npmrc supportedArchitectures alone wasn't enough — pnpm on Vercel skipped the musl package. Adding it as a direct dependency forces installation regardless of platform detection. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…compatibility Rspress v2 requires GLIBC 2.35+ (rspack native binding), but Vercel's Amazon Linux 2 build environment only provides GLIBC 2.26. The musl binary workaround also fails due to AL2's linker script at /lib64/libc.so. Switch to GitHub Actions (ubuntu-latest, GLIBC 2.38) for building, then deploy the pre-built static output to Vercel via --prebuilt flag. Remove musl-related workarounds from vercel.json, package.json, and .npmrc. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
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.
No description provided.