mirror of
https://github.com/zoriya/v10.git
synced 2026-08-04 21:27:10 +00:00
fix(site): install musl resvg binary so Netlify can bundle the OG function (#1759)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -2,6 +2,24 @@ minimumReleaseAge: 1440
|
||||
shellEmulator: true
|
||||
trustPolicy: no-downgrade
|
||||
|
||||
# Also install musl Linux binaries alongside the current platform's. The site's
|
||||
# OG image route depends on the native @resvg/resvg-js binding, and the
|
||||
# @astrojs/netlify (v8) adapter bundles the serverless function by tracing the
|
||||
# server entry with @vercel/nft, then calling fs.realpath on every traced file.
|
||||
# nft can't tell glibc from musl statically, so it traces BOTH Linux resvg
|
||||
# binaries — but pnpm only installs the glibc variant on Netlify, so realpath
|
||||
# on the missing musl binary throws ENOENT and the build fails. Installing the
|
||||
# musl variant too gives nft a real file to resolve. ("current" keeps the host
|
||||
# default; on non-Linux hosts the os filter excludes Linux packages entirely.)
|
||||
supportedArchitectures:
|
||||
os:
|
||||
- current
|
||||
cpu:
|
||||
- current
|
||||
libc:
|
||||
- current
|
||||
- musl
|
||||
|
||||
packages:
|
||||
- 'packages/*'
|
||||
- 'apps/*'
|
||||
|
||||
Reference in New Issue
Block a user