Skip to content

Commit

Permalink
id
Browse files Browse the repository at this point in the history
  • Loading branch information
solita-nhuttu committed Feb 19, 2024
1 parent 3e79bfa commit 0b3b31f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 0 additions & 2 deletions src/app/api/route.ts
Original file line number Diff line number Diff line change
@@ -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}`,
Expand Down

0 comments on commit 0b3b31f

Please sign in to comment.