Skip to content

Fix GitHub Actions workflow - replace Webpack with Next.js build#3

Draft
Copilot wants to merge 6 commits into
Testfrom
copilot/fix-deployment-issues
Draft

Fix GitHub Actions workflow - replace Webpack with Next.js build#3
Copilot wants to merge 6 commits into
Testfrom
copilot/fix-deployment-issues

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Nov 1, 2025

The deployment workflow was failing because it attempted to run npx webpack on a Next.js project, causing interactive webpack-cli installation prompts and build failures.

Changes

  • Workflow configuration (.github/workflows/webpack.ymlnextjs-build.yml)

    • Replace npx webpack with npm run build
    • Add npm caching via actions/setup-node@v4
    • Use npm ci instead of npm install for deterministic builds
    • Add explicit permissions: contents: read
  • Dependencies (package.json)

    • Add missing @radix-ui/react-radio-group (required by components/ui/radio-group.tsx)
  • ESLint (.eslintrc.json)

    • Add next/core-web-vitals config to prevent interactive prompts
# Before
- name: Build
  run: |
    npm install
    npx webpack

# After  
- name: Build
  run: |
    npm ci
    npm run build

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • fonts.googleapis.com
    • Triggering command: node /home/REDACTED/work/v0-memorialqrwebsitecode/v0-memorialqrwebsitecode/node_modules/.bin/next build (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Fix the deployment issues


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@vercel
Copy link
Copy Markdown

vercel Bot commented Nov 1, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
v0-deal-patrol-v0-memorialqrwebsite Error Error Nov 1, 2025 5:44am
v0-memorialqrwebsitecode-90 Ready Ready Preview Comment Nov 1, 2025 5:44am

Co-authored-by: DealPatrol <118781133+DealPatrol@users.noreply.github.com>
Co-authored-by: DealPatrol <118781133+DealPatrol@users.noreply.github.com>
Co-authored-by: DealPatrol <118781133+DealPatrol@users.noreply.github.com>
Copilot AI and others added 2 commits November 1, 2025 05:25
Co-authored-by: DealPatrol <118781133+DealPatrol@users.noreply.github.com>
Co-authored-by: DealPatrol <118781133+DealPatrol@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix deployment issues Fix GitHub Actions workflow - replace Webpack with Next.js build Nov 1, 2025
Copilot AI requested a review from DealPatrol November 1, 2025 05:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants