Parcourir la source

fix(dashboard): Update Vercel pull command to specify working directory for dashboard

David Höck il y a 9 mois
Parent
commit
f840efc493
2 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 1 1
      .github/workflows/deploy_dashboard.yml
  2. 2 2
      packages/dashboard/vite.config.mts

+ 1 - 1
.github/workflows/deploy_dashboard.yml

@@ -39,7 +39,7 @@ jobs:
               run: vercel link --yes --scope vendure --project=admin-dashboard --token=${{ secrets.VERCEL_TOKEN }}
               run: vercel link --yes --scope vendure --project=admin-dashboard --token=${{ secrets.VERCEL_TOKEN }}
 
 
             - name: Pull Vercel Environment Information
             - name: Pull Vercel Environment Information
-              run: vercel pull --environment=${{ env.VERCEL_ENV }} --yes --scope vendure --token=${{ secrets.VERCEL_TOKEN }}
+              run: vercel pull --cwd ./packages/dashboard --environment=${{ env.VERCEL_ENV }} --yes --scope vendure --token=${{ secrets.VERCEL_TOKEN }}
 
 
             - name: Build Project Artifacts
             - name: Build Project Artifacts
               run: vercel build --scope vendure --token=${{ secrets.VERCEL_TOKEN }} ${{ env.VERCEL_ENV == 'production' && '--prod' || '' }}
               run: vercel build --scope vendure --token=${{ secrets.VERCEL_TOKEN }} ${{ env.VERCEL_ENV == 'production' && '--prod' || '' }}

+ 2 - 2
packages/dashboard/vite.config.mts

@@ -5,8 +5,8 @@ import { defineConfig } from 'vitest/config';
 
 
 process.env.IS_LOCAL_DEV = 'true';
 process.env.IS_LOCAL_DEV = 'true';
 
 
-const adminApiHost = process.env.ADMIN_API_HOST || 'http://localhost';
-const adminApiPort = process.env.ADMIN_API_PORT ? +process.env.ADMIN_API_PORT : 'auto';
+const adminApiHost = process.env.VITE_ADMIN_API_HOST || 'http://localhost';
+const adminApiPort = process.env.VITE_ADMIN_API_PORT ? +process.env.VITE_ADMIN_API_PORT : 'auto';
 
 
 /**
 /**
  * This config is used for local development
  * This config is used for local development