Skip to content

Deps: clear the production audit findings #278

Closed

Description

@wab

What to build

pnpm audit --prod reports 1 critical and 26 high findings. Almost all of them come through packages that never run in production: the site runs as Vercel Node functions, not through react-router-serve, and the file-based routes package only runs at build time.

After this ticket, the production dependency list matches what the deployed functions and the client bundle actually load, and the lockfile picks up every patch available within the current ranges. A dry run on a copy of the lockfile showed the refresh alone takes the production audit to 0 critical and 2 high, both on Vite 5.

Scope:

  • Refresh every dependency within its current semver range.
  • Remove the client i18n HTTP backend. Translations ship as bundled resources, so the backend never fetches anything, and its load path points to a directory that does not exist.
  • Move @react-router/serve and @react-router/fs-routes to devDependencies. pnpm start keeps working locally.
  • Keep @types/node on 24.x to match engines.node.

Acceptance criteria

  • pnpm audit --prod reports no critical finding, and only Vite and esbuild findings remain
  • check, typecheck, unit tests and e2e tests pass
  • On the Vercel preview, FR and EN pages render and the language switch works, with no request to /locales/ in the network log
  • @types/node is still on 24.x

Blocked by

None, can start immediately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agentFully specified, AFK-ready for an agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions