try to move encryption key env decleration in docker file to fix build issues

This commit is contained in:
msukkari 2025-01-30 12:49:04 -08:00
parent 9946901044
commit f92acc0404
3 changed files with 2 additions and 3 deletions

View file

@ -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

View file

@ -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";

View file

@ -1,4 +1,3 @@
import { headers } from "next/headers";
import { ZOEKT_WEBSERVER_URL } from "../environment"