Skip to content

Commit

Permalink
.env
Browse files Browse the repository at this point in the history
  • Loading branch information
solita-nhuttu committed Feb 9, 2024
1 parent 13b8302 commit 0609c67
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main_3tee.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ jobs:
tags: nhuttu.azurecr.io/${{ secrets.ACR_USERNAME }}/webimage:${{ github.sha }}
file: ./Dockerfile
secrets: |
NEXT_PUBLIC_TESTATAAN=${{ secrets.NEXT_PUBLIC_TESTATAAN }}
AZURE_CONNECTION_STRING=${{secrets.AZURE_CONNECTION_STRING}}
NEXT_PUBLIC_HEY=${{secrets.NEXT_PUBLIC_HEY}}
TEST_ENV=${{secrets.TEST_ENV}}
"NEXT_PUBLIC_TESTATAAN=${{ secrets.NEXT_PUBLIC_TESTATAAN }}"
"AZURE_CONNECTION_STRING=${{secrets.AZURE_CONNECTION_STRING}}"
"NEXT_PUBLIC_HEY=${{secrets.NEXT_PUBLIC_HEY}}
"TEST_ENV=${{secrets.TEST_ENV}}"
deploy:
runs-on: ubuntu-latest
Expand Down
12 changes: 12 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
},
"dependencies": {
"@azure/storage-blob": "^12.17.0",
"dotenv": "^16.4.1",
"next": "14.1.0",
"react": "^18",
"react-dom": "^18"
Expand Down
2 changes: 2 additions & 0 deletions src/app/api/route.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
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 0609c67

Please sign in to comment.