mirror of
https://github.com/Dvorinka/excalidraw-full.git
synced 2026-06-05 06:32:56 +00:00
Add option to disable vite checker via env variable
Introduced the DISABLE_VITE_CHECKER environment variable to conditionally disable the vite checker plugin in the build process. Updated the Dockerfile to set this variable during the Docker build, allowing builds to bypass vite checker when needed.
This commit is contained in:
@@ -4,7 +4,7 @@ WORKDIR /app
|
||||
# 复制 excalidraw 子模块
|
||||
COPY excalidraw/ ./excalidraw/
|
||||
# 构建前端
|
||||
RUN cd excalidraw && npm install -g pnpm && pnpm install && cd excalidraw-app && pnpm build:app:docker
|
||||
RUN cd excalidraw && npm install -g pnpm && pnpm install && cd excalidraw-app && DISABLE_VITE_CHECKER=true pnpm build:app:docker
|
||||
|
||||
# 后端构建阶段
|
||||
FROM golang:alpine AS backend-builder
|
||||
|
||||
@@ -51,7 +51,9 @@ export default defineConfig({
|
||||
},
|
||||
plugins: [
|
||||
react(),
|
||||
checker({
|
||||
process.env.DISABLE_VITE_CHECKER
|
||||
? undefined
|
||||
: checker({
|
||||
typescript: true,
|
||||
eslint:
|
||||
envVars.VITE_APP_ENABLE_ESLINT === "false"
|
||||
|
||||
Reference in New Issue
Block a user