Browse Source

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

David Höck 9 months ago
parent
commit
7e7f792a26
1 changed files with 4 additions and 0 deletions
  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
             - name: Build common and core packages
               run: npm run build:core-common
               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
             - name: Link folder to project
               run: vercel link --yes --scope ${{ env.VERCEL_SCOPE }} --project=${{ env.VERCEL_PROJECT }} --token=${{ secrets.VERCEL_TOKEN }}
               run: vercel link --yes --scope ${{ env.VERCEL_SCOPE }} --project=${{ env.VERCEL_PROJECT }} --token=${{ secrets.VERCEL_TOKEN }}