From 9db5b5e99dc0c8ee41c02b76c03c1c3f700dc476 Mon Sep 17 00:00:00 2001 From: CREDO23 Date: Fri, 20 Mar 2026 16:21:11 +0200 Subject: [PATCH] ci(desktop): pass NEXT_PUBLIC env vars from GitHub Actions variables to Next.js build --- .github/workflows/desktop-release.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/desktop-release.yml b/.github/workflows/desktop-release.yml index dba2fa9cd..68b169497 100644 --- a/.github/workflows/desktop-release.yml +++ b/.github/workflows/desktop-release.yml @@ -45,6 +45,11 @@ jobs: - name: Build Next.js standalone run: pnpm build working-directory: surfsense_web + env: + NEXT_PUBLIC_FASTAPI_BACKEND_URL: ${{ vars.NEXT_PUBLIC_FASTAPI_BACKEND_URL }} + NEXT_PUBLIC_ELECTRIC_URL: ${{ vars.NEXT_PUBLIC_ELECTRIC_URL }} + NEXT_PUBLIC_DEPLOYMENT_MODE: ${{ vars.NEXT_PUBLIC_DEPLOYMENT_MODE }} + NEXT_PUBLIC_FASTAPI_BACKEND_AUTH_TYPE: ${{ vars.NEXT_PUBLIC_FASTAPI_BACKEND_AUTH_TYPE }} - name: Install desktop dependencies run: pnpm install