diff --git a/Dockerfile b/Dockerfile index c47daf3..b16432f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,7 +17,6 @@ WORKDIR /app COPY --from=deps /app/node_modules ./node_modules COPY . . -ENV CI=true ENV NODE_ENV=production ENV SKIP_ENV_VALIDATION=true @@ -28,7 +27,6 @@ RUN bun run build FROM base AS runner WORKDIR /app -ENV CI=true ENV NODE_ENV=production ENV NEXT_TELEMETRY_DISABLED=true ENV SKIP_ENV_VALIDATION=true diff --git a/bun.lockb b/bun.lockb index 27c81c2..d7633cf 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index dc172f9..42ebf4f 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "private": true, "type": "module", "scripts": { - "prepare": "lefthook install", + "prepare": "cross-env-shell '[ \"$NODE_ENV\" != \"production\" ] && lefthook install || exit 0'", "dev": "next dev --turbopack", "lint": "biome check --write", "prebuild": "next telemetry disable", @@ -67,6 +67,7 @@ "@types/react-dom": "npm:types-react-dom@19.0.0-rc.1", "autoprefixer": "^10.4.20", "client-only": "^0.0.1", + "cross-env": "^7.0.3", "drizzle-kit": "^0.24.1", "fluid-tailwind": "^1.0.3", "lefthook": "^1.7.14",