Repository navigation
Conversation
Use Node 26.13.0 and install pinned pnpm directly without bundled Corepack. Bump jsonwebtoken to 9.0.3 to avoid the removed SlowBuffer import and supply browser storage in the existing analytics unit fixture. Verified frozen installs, three production builds, desktop 339 and costcenter 17 unit tests, healthz 6 tests, JWT interoperability, HTTPS/Brotli/sharp and Prisma engine smoke checks. Docker/real database coverage remains pending. Revert this commit and restore the previous application images to roll back; no schema changes.
Upgrade the three apps and MCP SDK to Next 15.5.28 while retaining React 18, Pages Router, Webpack, and existing business behavior. Repair required ESLint 8 context and shadcn exports compatibility. Verified: frozen install, three production builds, clean desktop build, 339 desktop unit, 17 costcenter unit, 27 browser component, 9 GTM, 6 healthz tests, standalone locale/static/config and isolated upgrade proxy checks. Local Docker and real database checks remain unavailable. Rollback: revert this commit or the app image; keep the Node 26 base. No database schema migration or JWT format change. Refs labring#7432 Depends on labring#7433
This was referenced Nov 2, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem and result
Upgrade the repository's three frontend applications and MCP SDK to Next.js 15.5.28, addressing framework security issues and moving off the unsupported 13/14 release lines. Keep React/React DOM 18.3.1, Pages Router, Webpack, and existing business behavior.
Refs #7432. Depends on #7433 (Node 26); review and merge that prerequisite first. This branch starts from
fab78d7b35762011cc74775f6e7d6f244561a4c9. Because the Node branch is in a personal fork, this PR targets upstream main and initially includes the prerequisite Node commit. Recheck the final diff after the Node PR is merged.Next-only comparison: Node branch → Next branch. This PR remains a draft for the maintainer's final review; neither PR has been merged and neither issue has been closed.
Changes
eslint-config-nextversions in the three applications.context.cwdproperty. Stay on ESLint 8.outputFileTracingRootto the stable configuration and remove the obsoleteswcMinifyandinstrumentationHookoptions. Preserve standalone output, internationalization, and the license application's SVG Webpack loader.ui/*.tsx, but the old exports array first selected nonexistent.tspaths, causing the new resolver to fail. Preserve public import paths and add an explicittable-layoutexport.>=13.5.11peer range. Generated output retains the externalnext/scriptimport and does not bundle the Next.js runtime.@next/fontdependency. Desktop'snext-env.d.tsis generated by Next.js 15; a clean rebuild after deleting.nextalso passed.Validation
Independent review, coordinator acceptance, and an independent simplification pass with actual revalidation are complete. No unnecessary business abstractions, duplicate state, fallback branches, or tests were introduced.
Executed with Node 26.13.0 / pnpm 8.9.0:
.next: exit 0./healthz. Costcenter ran the real instrumentation/schema validation and returned the expected client configuration API response. English/Chinese SSR locales, static JavaScript, and public SVGs passed; desktop cache-control and locale-cookie checks passed./app/data/config.yamlconfiguration volume. They run the real application validators and do not stub database or business responses. This is not evidence of Linux container or real database validation.CI
For commit
a3da7261f5fb42bb93bd7268d7142dc84df779bf:Remaining validation and rollback