Răsfoiți Sursa

feat(dashboard): Add Vercel rewrites configuration to deployment workflow

David Höck 10 luni în urmă
părinte
comite
7e7f792a26
1 a modificat fișierele cu 4 adăugiri și 0 ștergeri
  1. 4 0
      .github/workflows/deploy_dashboard.yml

+ 4 - 0
.github/workflows/deploy_dashboard.yml

@@ -41,6 +41,10 @@ jobs:
             - name: Build common and core packages
               run: npm run build:core-common
 
+            - name: Create Vercel rewrites in root
+              run: |
+                  echo '{"rewrites": [{"source": "/(.*)","destination": "/index.html"}]}' > ./vercel.json
+
             - name: Link folder to project
               run: vercel link --yes --scope ${{ env.VERCEL_SCOPE }} --project=${{ env.VERCEL_PROJECT }} --token=${{ secrets.VERCEL_TOKEN }}