Update deps and setup of giftcard-tutorial project - #51
Merged
Conversation
✅ Deploy Preview for cl-nextjs-contentful-store canceled.
|
pfferrari
requested review from
gciotola,
malessani and
marco-commercelayer
September 10, 2026 09:49
marco-commercelayer
approved these changes
Sep 10, 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.
Closes commercelayer/issues-app/issues/716
Summary
Resolved all
pnpm auditvulnerabilities insolutions/giftcard-tutorial(4 high, 2 moderate) by upgrading Next.js 15 → 16.Security fix
next@15.5.25, which pinspostcss@8.4.31(exact) andsharp@0.34.5.next@16.3.4is the first version pinningpostcss@8.5.23andsharp@^0.35.4.cms/nextjs-contentful-storeandwebhooks/nextjs-signature-verification, already on Next 16.Dependency changes
next→^16.3.4,eslint-config-next→^16.3.4.@eslint/eslintrc(only needed forFlatCompat).Next.js 16 breaking changes addressed
next.config.ts:images.domains(deprecated) →images.remotePatterns.package.json:lintscriptnext lint→eslint .(next lintwas removed in Next 16).eslint.config.mjs: migrated to the native flat config fromeslint-config-nextv16.tsconfig.json/next-env.d.ts: mandatory changes applied by Next 16 (jsx: react-jsx,.next/dev/types).AGENTS.md/CLAUDE.md, matching the other Next 16 projects, sonext devdoesn't recreate them as uncommitted changes.Configuration
.env.exampledocumentingNEXT_PUBLIC_CL_CLIENT_IDandNEXT_PUBLIC_CL_ORG_SLUG.NEXT_PUBLIC_CL_MARKET_CODE, falling back tous(the previously hardcodardcodedmarket:code:usscope insrc/lib/commercelayer.ts.Verification
pnpm audit— no known vulnerabilities.pnpm lint— clean.tsc --noEmit— clean.pnpm build— passes with real credentials (4/4 static pages generated).Checklist (general changes)