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:
2026-07-14 12:41:07 +05:30
parent 29e11189e8
commit 2eab221eff
551 changed files with 75742 additions and 22 deletions

View File

@@ -0,0 +1,16 @@
var R=require("../../chunks/ssr/[turbopack]_runtime.js")("server/app/doormile-wings/page.js")
R.c("server/chunks/ssr/[root-of-the-server]__0~7vw31._.js")
R.c("server/chunks/ssr/src_0n990ke._.js")
R.c("server/chunks/ssr/node_modules_next_dist_09jzzl8._.js")
R.c("server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0dl9rr-.js")
R.c("server/chunks/ssr/[root-of-the-server]__07uj_3p._.js")
R.c("server/chunks/ssr/node_modules_next_dist_0_t6nhm._.js")
R.c("server/chunks/ssr/[root-of-the-server]__0ed.-2a._.js")
R.c("server/chunks/ssr/node_modules_next_dist_client_components_0inhx6q._.js")
R.c("server/chunks/ssr/node_modules_next_dist_client_components_builtin_forbidden_0ghu-f7.js")
R.c("server/chunks/ssr/node_modules_next_dist_client_components_builtin_unauthorized_0cjv-23.js")
R.c("server/chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_0lgvd_..js")
R.c("server/chunks/ssr/_next-internal_server_app_doormile-wings_page_actions_0t3ppuv.js")
R.c("server/chunks/ssr/[root-of-the-server]__055c-aq._.js")
R.m(95404)
module.exports=R.m(95404).exports

View File

@@ -0,0 +1,5 @@
{
"version": 3,
"sources": [],
"sections": []
}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,3 @@
{
"/doormile-wings/page": "app/doormile-wings/page.js"
}

View File

@@ -0,0 +1,18 @@
{
"devFiles": [],
"ampDevFiles": [],
"polyfillFiles": [
"static/chunks/03~yq9q893hmn.js"
],
"lowPriorityFiles": [],
"rootMainFiles": [
"static/chunks/098a0lm-b~rn..js",
"static/chunks/0tldj~reb5~dn.js",
"static/chunks/110q6k5sdl4es.js",
"static/chunks/14_678uuyq.tf.js",
"static/chunks/07uz2g0_38qia.js",
"static/chunks/turbopack-11jn_eqn~72wc.js"
],
"pages": {},
"ampFirstPages": []
}

View File

@@ -0,0 +1,14 @@
{
"pages": {},
"app": {
"[project]/src/app/doormile-wings/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
}

View File

@@ -0,0 +1,17 @@
{
"node": {
"40178d6214c1b2a677a6ba1e043a26ad439d28ae9a": {
"workers": {
"app/doormile-wings/page": {
"moduleId": 64668,
"async": false,
"exportedName": "sendEmailAction",
"filename": "src/actions/sendEmail.ts"
}
},
"exportedName": "sendEmailAction",
"filename": "src/actions/sendEmail.ts"
}
},
"edge": {}
}

File diff suppressed because one or more lines are too long