chore(docs): fix prod build for vercel (#8121)

# Fix

Fixes a problem on main
This commit is contained in:
Florian Forster 2024-06-13 10:47:10 +02:00 committed by GitHub
parent c9e352033e
commit f6a50db96c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: |