Skip to content

test(deps): update Next.js example to 15.5.2#1533

Merged
jennifer-shehane merged 1 commit into
cypress-io:masterfrom
MikeMcC399:update/nextjs
Sep 2, 2025
Merged

test(deps): update Next.js example to 15.5.2#1533
jennifer-shehane merged 1 commit into
cypress-io:masterfrom
MikeMcC399:update/nextjs

Conversation

@MikeMcC399

Copy link
Copy Markdown
Collaborator

Situation

Dependabot and npm audit report several moderate severity vulnerabilities in examples/nextjs using next@15.2.4, released March 24, 2025.

Change

Update to next@15.5.2 (current latest) and refresh other dependencies in examples/nextjs.

In examples/nextjs/next.config.mjs:

  • Add outputFileTracingRoot to fix ⚠ Warning: Next.js inferred your workspace root, but it may not be correct. that is now output when running either npm run dev or npm start. By default, Next.js does not expect to be run in a monorepo with other unrelated projects at a higher level in the directory hierarchy. See https://nextjs.org/docs/app/api-reference/config/next-config-js/output#caveats.

  • Add

  eslint: {
    // Warning: This allows production builds to successfully complete even if
    // your project has ESLint errors.
    ignoreDuringBuilds: true,
  },

Exclude examples/nextjs/build/ from linting in eslint.config.mjs

Verification

Execute:

npm ci
cd examples/nextjs
npm ci
npm audit # confirm "found 0 vulnerabilities"
npm run build # confirm no errors reported
npm start # confirm that server starts

In a separate terminal window:

npm test # confirm that Cypress runs successfully

In original terminal window, stop server (Ctrl-C), then:

npm run dev # confirm that server starts

Re-run Cypress test as above.

cd ../..
npx eslint # confirm no linting errors

@cypress-app-bot

Copy link
Copy Markdown
Collaborator

@MikeMcC399 MikeMcC399 self-assigned this Sep 1, 2025
@MikeMcC399
MikeMcC399 marked this pull request as ready for review September 1, 2025 09:55
@jennifer-shehane
jennifer-shehane merged commit 24409af into cypress-io:master Sep 2, 2025
80 checks passed
@MikeMcC399
MikeMcC399 deleted the update/nextjs branch September 2, 2025 14:36
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 6.10.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants