From f6a50db96c381b765ebf2ed83165ed3959945102 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Thu, 13 Jun 2024 10:47:10 +0200 Subject: [PATCH] chore(docs): fix prod build for vercel (#8121) # Fix Fixes a problem on main --- .github/workflows/docsusaurus.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docsusaurus.yml b/.github/workflows/docsusaurus.yml index 66ec3b1e4..ec20843e0 100644 --- a/.github/workflows/docsusaurus.yml +++ b/.github/workflows/docsusaurus.yml @@ -48,11 +48,16 @@ jobs: - name: Perpare Production Environment if: ${{ github.ref == 'refs/heads/main' && steps.filter.outputs.src == 'true' }} run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} - - name: Build Project Artifacts + - name: Build Preview + if: ${{ github.ref != 'refs/heads/main' && steps.filter.outputs.src == 'true' }} env: NODE_OPTIONS: "--max_old_space_size=8192" - if: steps.filter.outputs.src == 'true' run: vercel build --token=${{ secrets.VERCEL_TOKEN }} + - name: Build Production + if: ${{ github.ref == 'refs/heads/main' && steps.filter.outputs.src == 'true' }} + env: + NODE_OPTIONS: "--max_old_space_size=8192" + run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} - name: Deploy Preview if: ${{ github.ref != 'refs/heads/main' && steps.filter.outputs.src == 'true' }} run: |