Swadhin Biswas

[email protected]
2026-04-30 23:00:26 +0600 committed NaN years ago
51a74af
commit 51a74af
4 files changed
+5 -2
▼.github/workflows/ci.yml
+2-0
305
305
306
306
- name: Build application
307
307
run: bun run build
308
+ env:
309
+ SKIP_REDIS_CHECK: "1"
308
310
309
311
- name: Upload build artifacts
310
312
uses: actions/upload-artifact@v4
311
313
▼Dockerfile
+1-0
11
11
FROM base AS builder
12
12
COPY --from=deps /app/node_modules ./node_modules
13
13
COPY . .
14
+ENV SKIP_REDIS_CHECK=1
14
15
RUN bun run build
15
16
16
17
# Production image
17
18
▼src/lib/distributed-lock.ts
+1-1
9
9
// Try to import Redis - may not be configured
10
10
let redis: any = null;
11
11
let redisAvailable = false;
12
-const isProd = process.env.NODE_ENV === "production";
12
+const isProd = process.env.NODE_ENV === "production" && !process.env.SKIP_REDIS_CHECK;
13
13
14
14
try {
15
15
const redisModule = await import("./redis");
16
16
▼src/lib/rate-limit.ts
+1-1
4
4
// Try to import Redis - may not be configured
5
5
let redis: any = null;
6
6
let redisAvailable = false;
7
-const isProd = process.env.NODE_ENV === "production";
7
+const isProd = process.env.NODE_ENV === "production" && !process.env.SKIP_REDIS_CHECK;
8
8
9
9
try {
10
10
const redisModule = await import("@/lib/redis");
11
11