From f92acc040437fe3d17368580661a164c3c10f5ff Mon Sep 17 00:00:00 2001 From: msukkari Date: Thu, 30 Jan 2025 12:49:04 -0800 Subject: [PATCH] try to move encryption key env decleration in docker file to fix build issues --- Dockerfile | 2 +- packages/web/src/actions.ts | 2 +- packages/web/src/lib/server/zoektClient.ts | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 12874727..e907dbc8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,6 +38,7 @@ COPY --from=shared-libs-builder /app/packages/crypto ./packages/crypto RUN yarn config set registry https://registry.npmjs.org/ RUN yarn config set network-timeout 1200000 RUN yarn workspace @sourcebot/web install --frozen-lockfile +ENV SOURCEBOT_ENCRYPTION_KEY="" ENV NEXT_TELEMETRY_DISABLED=1 # @see: https://phase.dev/blog/nextjs-public-runtime-variables/ ARG NEXT_PUBLIC_SOURCEBOT_TELEMETRY_DISABLED=BAKED_NEXT_PUBLIC_SOURCEBOT_TELEMETRY_DISABLED @@ -149,7 +150,6 @@ RUN chmod +x ./entrypoint.sh COPY default-config.json . -ENV SOURCEBOT_ENCRYPTION_KEY="" EXPOSE 3000 ENV PORT=3000 diff --git a/packages/web/src/actions.ts b/packages/web/src/actions.ts index 9eca5f0c..94f7bd08 100644 --- a/packages/web/src/actions.ts +++ b/packages/web/src/actions.ts @@ -2,7 +2,7 @@ import Ajv from "ajv"; import { auth, getCurrentUserOrg } from "./auth"; -import { notAuthenticated, notFound, ServiceError, unexpectedError, serviceErrorResponse } from "@/lib/serviceError"; +import { notAuthenticated, notFound, ServiceError, unexpectedError } from "@/lib/serviceError"; import { prisma } from "@/prisma"; import { StatusCodes } from "http-status-codes"; import { ErrorCode } from "@/lib/errorCodes"; diff --git a/packages/web/src/lib/server/zoektClient.ts b/packages/web/src/lib/server/zoektClient.ts index dba28f0a..ac14f3e2 100644 --- a/packages/web/src/lib/server/zoektClient.ts +++ b/packages/web/src/lib/server/zoektClient.ts @@ -1,4 +1,3 @@ -import { headers } from "next/headers"; import { ZOEKT_WEBSERVER_URL } from "../environment"