From 76f78a6af19724f414311cc394aa622b198082e8 Mon Sep 17 00:00:00 2001 From: Bram Suurd <78373894+BramSuurdje@users.noreply.github.com> Date: Fri, 1 Nov 2024 18:01:42 +0100 Subject: [PATCH] Add local environment variables in .env.local and adjust .gitignore for local env files in the Next.js workflow --- .env.local | 3 +++ .github/workflows/nextjs.yml | 4 ---- .gitignore | 6 +++--- 3 files changed, 6 insertions(+), 7 deletions(-) create mode 100644 .env.local diff --git a/.env.local b/.env.local new file mode 100644 index 0000000..be61394 --- /dev/null +++ b/.env.local @@ -0,0 +1,3 @@ +NEXT_PUBLIC_ANALYTICS_TOKEN="b60d3032-1a11-4244-a100-81d26c5c49a7" +NEXT_PUBLIC_ANALYTICS_URL="analytics.bramsuurd.nl" +NEXT_PUBLIC_POCKETBASE_URL="https://pocketbase.proxmoxve-scripts.com" \ No newline at end of file diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index e1d8973..159de91 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -75,10 +75,6 @@ jobs: run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} --legacy-peer-deps - name: Build with Next.js run: ${{ steps.detect-package-manager.outputs.runner }} next build - env: - NEXT_PUBLIC_ANALYTICS_TOKEN: ${{ secrets.NEXT_PUBLIC_ANALYTICS_TOKEN }} - NEXT_PUBLIC_POCKETBASE_URL: ${{ secrets.NEXT_PUBLIC_POCKETBASE_URL }} - NEXT_PUBLIC_ANALYTICS_URL: ${{ secrets.NEXT_PUBLIC_ANALYTICS_URL }} - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: diff --git a/.gitignore b/.gitignore index f0fd398..0bff17b 100644 --- a/.gitignore +++ b/.gitignore @@ -28,9 +28,9 @@ npm-debug.log* yarn-debug.log* yarn-error.log* -# local env files -.env*.local -.env +# # local env files +# .env*.local +# .env # vercel .vercel