diff --git a/Dockerfile b/Dockerfile index d4feee2..b2a5e81 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,9 @@ COPY . . RUN --mount=type=secret,id=NEXT_PUBLIC_TESTATAAN \ --mount=type=secret,id=NEXT_PUBLIC_HEY \ + --mount=type=secret,id=COSMOS_CONNECTION_STRING \ export NEXT_PUBLIC_TESTATAAN=$(cat /run/secrets/NEXT_PUBLIC_TESTATAAN) && \ + export COSMOS_CONNECTION_STRING=$(cat /run/secrets/COSMOS_CONNECTION_STRING) && \ export NEXT_PUBLIC_HEY=$(cat /run/secrets/NEXT_PUBLIC_HEY) && \ npm run build diff --git a/src/app/api/route.ts b/src/app/api/route.ts index cb37fe8..ace8c6a 100644 --- a/src/app/api/route.ts +++ b/src/app/api/route.ts @@ -1,5 +1,3 @@ -import "dotenv/config"; - export async function GET(request: Request) { return new Response( `Hello, ${request.url}!, is process defined or not? ${process.env.AZURE_CONNECTION_STRING?.substring(0, 7) ?? "It was not"} and then length ${process.env.AZURE_CONNECTION_STRING?.length} and test env: ${process.env.TEST_ENV}`,