build(deploy): tldraw 授权 - 支持从部署环境注入 License Key

This commit is contained in:
ddCat committed 2026-07-27 21:38:33 +08:00
1 parent e3416768ab
commit 89a1154aa1
2 files changed
+4

No files matched your search

+2
View File
@@ -4,6 +4,8 @@
FROM oven/bun:1.3.13 AS web-build
WORKDIR /app/web
ARG VITE_TLDRAW_LICENSE_KEY
ENV VITE_TLDRAW_LICENSE_KEY=${VITE_TLDRAW_LICENSE_KEY}
COPY web/package.json web/bun.lock ./
RUN --mount=type=cache,target=/root/.bun/install/cache bun install --cache-dir=/root/.bun/install/cache
COPY VERSION /app/VERSION