From fcf903231558bbae44fcd7cb0f3a496f1df25a02 Mon Sep 17 00:00:00 2001 From: David Morton Date: Sun, 26 Nov 2023 12:58:08 +0000 Subject: [PATCH] make env variable available to vite during build process --- .github/workflows/deploy-github-pages.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy-github-pages.yml b/.github/workflows/deploy-github-pages.yml index c517ba5..dc5f109 100644 --- a/.github/workflows/deploy-github-pages.yml +++ b/.github/workflows/deploy-github-pages.yml @@ -39,6 +39,8 @@ jobs: run: npm install - name: Build run: npm run build + env: + VITE_API_KEY: ${{ env.VITE_API_KEY }} - name: Setup Pages uses: actions/configure-pages@v3 - name: Upload artifact