Conversation
|
Important Review skippedAuto reviews are disabled on this repository. To trigger a review, include ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Tip You can make CodeRabbit's review stricter and more nitpicky using the `assertive` profile, if that's what you prefer.Change the |
Description and Related Issue(s)
This PR upgrades the frontend from Next.js 15 to Next.js 16 and adapts the build, config, and request pipeline to the new defaults and APIs.
Proposed Changes
next,@next/bundle-analyzer,@next/eslint-plugin-next, andeslint-config-nextto 16.x (16.1.7).turbopacksection that mirrors existing webpack customizations (SVG via@svgr/webpack, stubbing of Node built-insfs/net/tlsin the browser vianextjs/empty-module.js). Webpack remains in use when running withBUNDLE_ANALYZER=trueornext build --webpack.build:analyzescript runsBUNDLE_ANALYZER=true next build --webpackfor bundle analysis.middleware.tshas been replaced byproxy.ts. Middleware logic (account, app profile, theme, address format, etc.) is now invoked from the API proxy route (/api/proxy) instead of the root middleware, aligning with Next.js 16’s request handling.config.edge) or app config at module load. Config loading is removed from the CSP module; app profile for private mode is read viareq.cookies.get('app_profile')instead of a custom cookie helper.configs/essential-dapps-chains/config.edge.tsandconfigs/multichain/config.edge.ts. Multichain and essential-dapps-chains now use the Node.js config only, with a fallback in the index when not in the browser.tsconfig.jsonandeslint.config.mjsupdated for the new Next/TS setup;next-env.d.tsand related types adjusted..cursor/mcp.jsonupdated for local tooling.No new or changed environment variables. No updates to
docs/ENVS.mdor the validator.Breaking or Incompatible Changes
next builduses Turbopack. Usenext build --webpack(oryarn build:analyze) when webpack-specific behavior or bundle analysis is required.Additional Information
origin/main(one commit ahead).yarn.lockand dependency versions updated for Next 16.Checklist for PR author