mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
fix(hexclave): rename STACK_SKIP_TEMPLATE_GENERATION env in Dockerfiles
The preinstall hook now checks HEXCLAVE_SKIP_TEMPLATE_GENERATION, but the Docker builders still set the old STACK_ name, so the skip guard never matched and pnpm install tried to run ./scripts/generate-sdks.ts (not copied into the build layer), failing with ERR_MODULE_NOT_FOUND.
This commit is contained in:
parent
4a8245ae4d
commit
703c6db22c
@ -39,7 +39,7 @@ RUN turbo prune --scope=@hexclave/backend --docker
|
||||
FROM base AS builder
|
||||
|
||||
# Skip generate-sdks.ts in preinstall hook (file not available in pruned output)
|
||||
ENV STACK_SKIP_TEMPLATE_GENERATION=true
|
||||
ENV HEXCLAVE_SKIP_TEMPLATE_GENERATION=true
|
||||
|
||||
COPY --from=pruner /app/out/json/ .
|
||||
COPY --from=pruner /app/out/pnpm-lock.yaml .
|
||||
|
||||
@ -36,7 +36,7 @@ RUN turbo prune --scope=@hexclave/backend --scope=@hexclave/dashboard --docker
|
||||
FROM node-base AS builder
|
||||
|
||||
# Skip generate-sdks.ts in preinstall hook (file not available in pruned output)
|
||||
ENV STACK_SKIP_TEMPLATE_GENERATION=true
|
||||
ENV HEXCLAVE_SKIP_TEMPLATE_GENERATION=true
|
||||
|
||||
# copy over package.json files and install dependencies
|
||||
COPY --from=pruner /app/out/json/ .
|
||||
|
||||
@ -34,7 +34,7 @@ RUN turbo prune --scope=@hexclave/backend --scope=@hexclave/dashboard --docker
|
||||
FROM base AS builder
|
||||
|
||||
# Skip generate-sdks.ts in preinstall hook (file not available in pruned output)
|
||||
ENV STACK_SKIP_TEMPLATE_GENERATION=true
|
||||
ENV HEXCLAVE_SKIP_TEMPLATE_GENERATION=true
|
||||
|
||||
# copy over package.json files and install dependencies
|
||||
COPY --from=pruner /app/out/json/ .
|
||||
|
||||
Loading…
Reference in New Issue
Block a user