Update frontend to next 16 - #128
Merged
Merged
Conversation
- Changed Node.js engine requirement from ">=20.x" to "24.x". - Upgraded Next.js from "13.4.13" to "^16.0.10". - Updated PostCSS from "8.4.27" to "^8.5.8". - Adjusted TypeScript configuration to use "react-jsx" for JSX transformation.
sergiosja
approved these changes
Mar 19, 2026
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.
Update the Next.js frontend from v13 to v16, bump Node.js from 20 to 24, and modernize the surrounding toolchain (ESLint 9 flat config, stricter TypeScript, latest dependency versions). Also fixes cookie forwarding for the login flow and corrects optimistic-update bugs in the API hooks.
Loooots of things were deprecated and had tons of sec vuln. Heroku would not deploy
Key additions
next/imageusages updated with explicitstyle={{ maxWidth: '100%', height: 'auto' }}to match the new image optimization defaultsenginesfield updated.eslintrc.jsontoeslint.config.mjswith ESLint 9; dropped@typescript-eslint/eslint-pluginin favor ofeslint-config-next/typescript; disabled new React Compiler lint rules (react-hooks/purity,react-hooks/set-state-in-effect,react-hooks/refs) that don't apply yetjsxchanged from"preserve"to"react-jsx"for Next 16 compatibility; formatting normalized to 2-space indentgetSetCookie()to forward multipleSet-Cookieheaders (auth + CSRF token) instead of collapsing them withget('set-cookie')useEvents.createEventnow types the response asApiEventinstead ofApiEventPost;useRestaurants.createRestaurantuses the server response for optimistic cache update instead of the local input objectHow Has This Been Tested?
npm run build— production build passes with the new Next.js versionnpm run lint— ESLint 9 flat config lints cleanly with zero warningsnpm run typecheck— TypeScript strict mode passes with the updatedtsconfig.json