Skip to content

Commit 316be09

Browse files
bookernathclaude
andauthored
Bump Next.js to 14.2.35 and remove engines constraint (#47)
* Bump Next.js to 14.2.35 and remove engines constraint Update Next.js from 14.0.0 to 14.2.35 and remove the engines field to allow more flexible Node.js and pnpm version requirements. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> * Wrap MobileMenu and Search in Suspense boundaries Fix build error where useSearchParams() was not wrapped in a Suspense boundary, which prevented pre-rendering of the not-found page. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> * Remove deprecated experimental.serverActions config Server Actions are enabled by default in Next.js 14.2.35, so this experimental flag is no longer needed and causes a warning. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent d4a49a7 commit 316be09

4 files changed

Lines changed: 3586 additions & 2406 deletions

File tree

components/layout/navbar/index.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ export default async function Navbar() {
1515
return (
1616
<nav className="relative flex items-center justify-between p-4 lg:px-6">
1717
<div className="block flex-none md:hidden">
18-
<MobileMenu menu={menu} />
18+
<Suspense>
19+
<MobileMenu menu={menu} />
20+
</Suspense>
1921
</div>
2022
<div className="flex w-full items-center">
2123
<div className="flex w-full md:w-1/3">
@@ -41,7 +43,9 @@ export default async function Navbar() {
4143
) : null}
4244
</div>
4345
<div className="hidden justify-center md:flex md:w-1/3">
44-
<Search />
46+
<Suspense>
47+
<Search />
48+
</Suspense>
4549
</div>
4650
<div className="flex justify-end md:w-1/3">
4751
<Suspense fallback={<OpenCart />}>

next.config.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ module.exports = {
44
// Disabling on production builds because we're running checks on PRs via GitHub Actions.
55
ignoreDuringBuilds: true
66
},
7-
experimental: {
8-
serverActions: true
9-
},
107
images: {
118
remotePatterns: [
129
{

package.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
{
22
"private": true,
3-
"packageManager": "pnpm@8.2.0",
4-
"engines": {
5-
"node": ">=18",
6-
"pnpm": ">=7"
7-
},
83
"scripts": {
94
"dev": "next dev",
105
"build": "next build",
@@ -26,7 +21,7 @@
2621
"@heroicons/react": "^2.0.18",
2722
"clsx": "^2.0.0",
2823
"geist": "^1.0.0",
29-
"next": "14.0.0",
24+
"next": "14.2.35",
3025
"react": "18.2.0",
3126
"react-cookie": "^4.1.1",
3227
"react-dom": "18.2.0"
@@ -49,5 +44,6 @@
4944
"prettier-plugin-tailwindcss": "^0.5.6",
5045
"tailwindcss": "^3.3.5",
5146
"typescript": "5.2.2"
52-
}
47+
},
48+
"packageManager": "pnpm@10.15.0+sha512.486ebc259d3e999a4e8691ce03b5cac4a71cbeca39372a9b762cb500cfdf0873e2cb16abe3d951b1ee2cf012503f027b98b6584e4df22524e0c7450d9ec7aa7b"
5349
}

0 commit comments

Comments
 (0)