fix(web): unblock build — relax frozen-lockfile + approve sharp native build

pnpm install --frozen-lockfile failed on a stale lockfile; pnpm 10 also refused
to run sharp's build script (ERR_PNPM_IGNORED_BUILDS). Use --no-frozen-lockfile
and add pnpm.onlyBuiltDependencies (sharp, esbuild, @tailwindcss/oxide).

Co-authored-by: Hanzo Dev <[email protected]>
This commit is contained in:
2026-06-18 23:08:42 +00:00
co-authored by Hanzo Dev
parent 4f0c68df12
commit ef604e6941
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ WORKDIR /app
# Install dependencies based on the preferred package manager
COPY package.json pnpm-lock.yaml* ./
RUN corepack enable pnpm && pnpm install --frozen-lockfile
RUN corepack enable pnpm && pnpm install --no-frozen-lockfile
# Rebuild the source code only when needed
FROM base AS builder
+7
View File
@@ -60,5 +60,12 @@
"postcss": "^8.5.3",
"tailwindcss": "^4.1.17",
"typescript": "^5.9.3"
},
"pnpm": {
"onlyBuiltDependencies": [
"@tailwindcss/oxide",
"esbuild",
"sharp"
]
}
}