From 322a1d0f921a2c1fa1893309f7f4cc45962093b0 Mon Sep 17 00:00:00 2001 From: Bram Suurd <78373894+BramSuurdje@users.noreply.github.com> Date: Fri, 1 Nov 2024 17:59:37 +0100 Subject: [PATCH] Add environment variables for analytics and Pocketbase in Next.js workflow --- .github/workflows/nextjs.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index 159de91..e1d8973 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -75,6 +75,10 @@ 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: