Next.js Discord

Discord Forum

Double Deployment Issue

Unanswered
Transvaal lion posted this in #help-forum
Open in Discord
Transvaal lionOP
Hi everyone. Maybe, I got a silly question but how can I avoid double deployments of each commit? It deploys twice of each pr whenever I commit which I'd like to avoid. Or I am missing something? Is it how it is supposed to work? It just fills up my deployment queue.

  deploy:
    if: github.event.action == 'opened' || github.event.action == 'reopened' || github.event.action == 'synchronize'
    name: Deploy to Vercel
    runs-on: ubuntu-latest
    needs: [pre, setup]
    steps:
      - name: Deploy to Vercel
        uses: snaplet/vercel-action@v3
        with:
          ignored-build-command: false
          env: |
            DIRECT_URL=

0 Replies