-
Notifications
You must be signed in to change notification settings - Fork 275
Upgrade Nextjs to v16.2 #2193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Upgrade Nextjs to v16.2 #2193
Changes from 7 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
60a2d7d
Upgrade Nextjs to v16.2
MenKNas 6b927ab
Regenerate yarn.lock
MenKNas 30fe2f3
Update CHANGELOG.md
MenKNas e3aca01
Fix scaffold apps issues
MenKNas cb3574b
Regenerate yarn.lock
MenKNas fc5f177
Restore previous files / change linting rules for samples
MenKNas aad91d6
Merge branch 'dev' into feature/JSS-9297-upgrade-to-next-js-16-2
MenKNas a60464c
Restore tighter linting rules and adjust sxa components
MenKNas ef6ad75
Merge branch 'feature/JSS-9297-upgrade-to-next-js-16-2' of https://gi…
MenKNas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
149 changes: 74 additions & 75 deletions
149
packages/create-sitecore-jss/src/templates/nextjs/package.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,75 +1,74 @@ | ||
| { | ||
| "name": "<%- appName %>", | ||
| "description": "Application utilizing Sitecore JavaScript Services and Next.js", | ||
| "version": "0.1.0", | ||
| "private": true, | ||
| "config": { | ||
| "appName": "<%- appName %>", | ||
| "rootPlaceholders": [ | ||
| "<%- helper.getAppPrefix(appPrefix, appName) %>jss-main" | ||
| ], | ||
| "sitecoreConfigPath": "/App_Config/Include/zzz", | ||
| "graphQLEndpointPath": "/sitecore/api/graph/edge", | ||
| "language": "en" | ||
| }, | ||
| "author": { | ||
| "name": "Sitecore Corporation", | ||
| "url": "https://jss.sitecore.com" | ||
| }, | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "git+https://github.com/sitecore/jss.git" | ||
| }, | ||
| "bugs": { | ||
| "url": "https://github.com/sitecore/jss/issues" | ||
| }, | ||
| "license": "Apache-2.0", | ||
| "dependencies": { | ||
| "@sitecore-jss/sitecore-jss-nextjs": "<%- version %>", | ||
| "next": "^16.1.0", | ||
| "next-localization": "^0.12.0", | ||
| "react": "^19.1.0", | ||
| "react-dom": "^19.1.0", | ||
| "sharp": "0.34.3" | ||
| }, | ||
| "devDependencies": { | ||
| "@sitecore-jss/sitecore-jss-cli": "<%- version %>", | ||
| "@sitecore-jss/sitecore-jss-dev-tools": "<%- version %>", | ||
| "@types/node": "^24.10.4", | ||
| "@types/react": "^19.1.7", | ||
| "@types/react-dom": "^19.1.7", | ||
| "@typescript-eslint/eslint-plugin": "^8.14.0", | ||
| "@typescript-eslint/parser": "^8.14.0", | ||
| "chalk": "~4.1.2", | ||
| "chokidar": "~4.0.3", | ||
| "constant-case": "^3.0.4", | ||
| "cross-env": "~10.0.0", | ||
| "dotenv-flow": "^4.1.0", | ||
| "@eslint/eslintrc": "^3.2.0", | ||
| "eslint": "^9.15.0", | ||
| "eslint-config-next": "^15.0.0", | ||
| "eslint-config-prettier": "^8.6.0", | ||
| "eslint-plugin-prettier": "^4.2.1", | ||
| "eslint-plugin-react": "^7.37.5", | ||
| "eslint-plugin-yaml": "^0.5.0", | ||
| "npm-run-all": "~4.1.5", | ||
| "prettier": "^2.8.3", | ||
| "ts-node": "^10.9.1", | ||
| "tsconfig-paths": "^4.1.2", | ||
| "typescript": "~5.4.0" | ||
| }, | ||
| "scripts": { | ||
| "jss": "jss", | ||
| "lint": "eslint ./src/**/*.tsx ./src/**/*.ts ./scripts/**/*.ts", | ||
| "bootstrap": "ts-node --require dotenv-flow/config --project tsconfig.scripts.json scripts/bootstrap.ts", | ||
| "build": "cross-env NODE_ENV=production npm-run-all --serial bootstrap next:build", | ||
| "next:build": "next build --webpack", | ||
| "next:dev": "cross-env NODE_OPTIONS='--inspect' next dev --webpack", | ||
| "next:start": "next start", | ||
| "scaffold": "ts-node --project tsconfig.scripts.json scripts/scaffold-component/index.ts", | ||
| "start:connected": "cross-env NODE_ENV=development npm-run-all --serial bootstrap --parallel next:dev start:watch-components", | ||
| "start:production": "cross-env-shell NODE_ENV=production npm-run-all --serial bootstrap next:build next:start", | ||
| "start:watch-components": "ts-node --project tsconfig.scripts.json scripts/generate-component-builder/index.ts --watch", | ||
| "install-pre-push-hook": "ts-node --project tsconfig.scripts.json ./scripts/install-pre-push-hook.ts" | ||
| } | ||
| } | ||
| { | ||
| "name": "<%- appName %>", | ||
| "description": "Application utilizing Sitecore JavaScript Services and Next.js", | ||
| "version": "0.1.0", | ||
| "private": true, | ||
| "config": { | ||
| "appName": "<%- appName %>", | ||
| "rootPlaceholders": [ | ||
| "<%- helper.getAppPrefix(appPrefix, appName) %>jss-main" | ||
| ], | ||
| "sitecoreConfigPath": "/App_Config/Include/zzz", | ||
| "graphQLEndpointPath": "/sitecore/api/graph/edge", | ||
| "language": "en" | ||
| }, | ||
| "author": { | ||
| "name": "Sitecore Corporation", | ||
| "url": "https://jss.sitecore.com" | ||
| }, | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "git+https://github.com/sitecore/jss.git" | ||
| }, | ||
| "bugs": { | ||
| "url": "https://github.com/sitecore/jss/issues" | ||
| }, | ||
| "license": "Apache-2.0", | ||
| "dependencies": { | ||
| "@sitecore-jss/sitecore-jss-nextjs": "<%- version %>", | ||
| "next": "^16.2.0", | ||
| "next-localization": "^0.12.0", | ||
| "react": "^19.1.0", | ||
| "react-dom": "^19.1.0", | ||
| "sharp": "0.34.3" | ||
| }, | ||
| "devDependencies": { | ||
| "@sitecore-jss/sitecore-jss-cli": "<%- version %>", | ||
| "@sitecore-jss/sitecore-jss-dev-tools": "<%- version %>", | ||
| "@types/node": "^24.10.4", | ||
| "@types/react": "^19.1.7", | ||
| "@types/react-dom": "^19.1.7", | ||
| "@typescript-eslint/eslint-plugin": "^8.14.0", | ||
| "@typescript-eslint/parser": "^8.14.0", | ||
| "chalk": "~4.1.2", | ||
| "chokidar": "~4.0.3", | ||
| "constant-case": "^3.0.4", | ||
| "cross-env": "~10.0.0", | ||
| "dotenv-flow": "^4.1.0", | ||
| "eslint": "^9.15.0", | ||
| "eslint-config-next": "^16.2.0", | ||
| "eslint-config-prettier": "^8.6.0", | ||
| "eslint-plugin-prettier": "^4.2.1", | ||
| "eslint-plugin-react": "^7.37.5", | ||
| "eslint-plugin-yaml": "^0.5.0", | ||
| "npm-run-all": "~4.1.5", | ||
| "prettier": "^2.8.3", | ||
| "ts-node": "^10.9.1", | ||
| "tsconfig-paths": "^4.1.2", | ||
| "typescript": "~5.4.0" | ||
| }, | ||
| "scripts": { | ||
| "jss": "jss", | ||
| "lint": "eslint ./src/**/*.tsx ./src/**/*.ts ./scripts/**/*.ts", | ||
| "bootstrap": "ts-node --require dotenv-flow/config --project tsconfig.scripts.json scripts/bootstrap.ts", | ||
| "build": "cross-env NODE_ENV=production npm-run-all --serial bootstrap next:build", | ||
| "next:build": "next build --webpack", | ||
| "next:dev": "cross-env NODE_OPTIONS='--inspect' next dev --webpack", | ||
| "next:start": "next start", | ||
| "scaffold": "ts-node --project tsconfig.scripts.json scripts/scaffold-component/index.ts", | ||
| "start:connected": "cross-env NODE_ENV=development npm-run-all --serial bootstrap --parallel next:dev start:watch-components", | ||
| "start:production": "cross-env-shell NODE_ENV=production npm-run-all --serial bootstrap next:build next:start", | ||
| "start:watch-components": "ts-node --project tsconfig.scripts.json scripts/generate-component-builder/index.ts --watch", | ||
| "install-pre-push-hook": "ts-node --project tsconfig.scripts.json ./scripts/install-pre-push-hook.ts" | ||
| } | ||
| } |
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.