fix: inject linux-musl sharp binaries into build/ to fix 502 on Dokploy
build.sh runs npm run build on macOS, so only the host's sharp binary (darwin-arm64) got traced into the standalone output. The container runs node:20-alpine (Linux, musl libc), which cannot load that binary - the server crashed at runtime, causing a 502 even though the docker build itself succeeded. npm pack can fetch another platform's prebuilt sharp/libvips tarballs without an install-time OS check, so build.sh now pulls the linux-musl x64 and arm64 builds directly into build/node_modules and drops the now-unused host binary.
This commit is contained in:
14
build/.next/server/app/about-us/page/next-font-manifest.json
Normal file
14
build/.next/server/app/about-us/page/next-font-manifest.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"pages": {},
|
||||
"app": {
|
||||
"[project]/src/app/about-us/page": [
|
||||
"static/media/a343f882a40d2cc9-s.p.0kho-wj7-y-w1.woff2",
|
||||
"static/media/0c89a48fa5027cee-s.p.0rd3rjvnnhw7n.woff2",
|
||||
"static/media/0c795a286deabae8-s.p.14tvuu96~wkr0.woff2",
|
||||
"static/media/5c285b27cdda1fe8-s.p.0yo6-5yoeeudq.woff2",
|
||||
"static/media/83afe278b6a6bb3c-s.p.0q-301v4kxxnr.woff2"
|
||||
]
|
||||
},
|
||||
"appUsingSizeAdjust": true,
|
||||
"pagesUsingSizeAdjust": false
|
||||
}
|
||||
Reference in New Issue
Block a user