Skip to content

merge - #4

Merged
Janlaywss merged 7 commits into
masterfrom
main
Apr 1, 2026
Merged

merge#4
Janlaywss merged 7 commits into
masterfrom
main

Conversation

@Janlaywss

Copy link
Copy Markdown
Owner

No description provided.

Janlaywssand others added 7 commits April 1, 2026 11:27
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>
@vercel

vercelBot commented Apr 1, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
ProjectDeploymentActionsUpdated (UTC)
cloud-code-studyIgnoredIgnoredApr 1, 2026 4:00am

@Janlaywss
Janlaywss merged commit 0e6b16e into masterApr 1, 2026
2 checks passed
Sign up for freeto 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

@Janlaywss