From 60f40a495ec31c9eafaf7d3ac560ddfc69dc3f81 Mon Sep 17 00:00:00 2001 From: RizqiSyahrendra Date: Thu, 13 Feb 2025 13:04:34 +0700 Subject: [PATCH] fix: upgrade next to 15 canary due to metadata issues - cannot stream metadata --- next.config.ts | 3 ++ package.json | 4 +-- yarn.lock | 84 +++++++++++++++++++++++++------------------------- 3 files changed, 47 insertions(+), 44 deletions(-) diff --git a/next.config.ts b/next.config.ts index eb28c9f..e7346c1 100644 --- a/next.config.ts +++ b/next.config.ts @@ -11,6 +11,9 @@ const nextConfig: NextConfig = { }, ], }, + experimental: { + streamingMetadata: true, + }, }; export default withPayload(nextConfig); diff --git a/package.json b/package.json index a0a9d4f..426fd1c 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "imagesloaded": "^5.0.0", "isotope-layout": "^3.0.6", "jarallax": "^2.2.1", - "next": "15.1.6", + "next": "15.2.0-canary.30", "payload": "^3.20.0", "photoswipe": "^5.4.4", "react": "^19.0.0", @@ -65,4 +65,4 @@ "typescript": "^5" }, "packageManager": "yarn@4.6.0" -} +} \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 8d561ce..d477585 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2347,10 +2347,10 @@ __metadata: languageName: node linkType: hard -"@next/env@npm:15.1.6": - version: 15.1.6 - resolution: "@next/env@npm:15.1.6" - checksum: 10c0/b68d541abe0cf5f8bab83633680c193ff1756e73b024ffb18c146502a588e038ee705c6064d9c39609a9c0097c563162a296ae43041b34e06831f5b72a215121 +"@next/env@npm:15.2.0-canary.30": + version: 15.2.0-canary.30 + resolution: "@next/env@npm:15.2.0-canary.30" + checksum: 10c0/7c103ac9107de87cf8031f73c48c4ec1176d5233e1c45d84d2be6234f0b00081deb7e6d2d9815c26f46c4f76e6035ad97c5e69b1e0ebd08583bed7b181a458a6 languageName: node linkType: hard @@ -2370,58 +2370,58 @@ __metadata: languageName: node linkType: hard -"@next/swc-darwin-arm64@npm:15.1.6": - version: 15.1.6 - resolution: "@next/swc-darwin-arm64@npm:15.1.6" +"@next/swc-darwin-arm64@npm:15.2.0-canary.30": + version: 15.2.0-canary.30 + resolution: "@next/swc-darwin-arm64@npm:15.2.0-canary.30" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@next/swc-darwin-x64@npm:15.1.6": - version: 15.1.6 - resolution: "@next/swc-darwin-x64@npm:15.1.6" +"@next/swc-darwin-x64@npm:15.2.0-canary.30": + version: 15.2.0-canary.30 + resolution: "@next/swc-darwin-x64@npm:15.2.0-canary.30" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@next/swc-linux-arm64-gnu@npm:15.1.6": - version: 15.1.6 - resolution: "@next/swc-linux-arm64-gnu@npm:15.1.6" +"@next/swc-linux-arm64-gnu@npm:15.2.0-canary.30": + version: 15.2.0-canary.30 + resolution: "@next/swc-linux-arm64-gnu@npm:15.2.0-canary.30" conditions: os=linux & cpu=arm64 & libc=glibc languageName: node linkType: hard -"@next/swc-linux-arm64-musl@npm:15.1.6": - version: 15.1.6 - resolution: "@next/swc-linux-arm64-musl@npm:15.1.6" +"@next/swc-linux-arm64-musl@npm:15.2.0-canary.30": + version: 15.2.0-canary.30 + resolution: "@next/swc-linux-arm64-musl@npm:15.2.0-canary.30" conditions: os=linux & cpu=arm64 & libc=musl languageName: node linkType: hard -"@next/swc-linux-x64-gnu@npm:15.1.6": - version: 15.1.6 - resolution: "@next/swc-linux-x64-gnu@npm:15.1.6" +"@next/swc-linux-x64-gnu@npm:15.2.0-canary.30": + version: 15.2.0-canary.30 + resolution: "@next/swc-linux-x64-gnu@npm:15.2.0-canary.30" conditions: os=linux & cpu=x64 & libc=glibc languageName: node linkType: hard -"@next/swc-linux-x64-musl@npm:15.1.6": - version: 15.1.6 - resolution: "@next/swc-linux-x64-musl@npm:15.1.6" +"@next/swc-linux-x64-musl@npm:15.2.0-canary.30": + version: 15.2.0-canary.30 + resolution: "@next/swc-linux-x64-musl@npm:15.2.0-canary.30" conditions: os=linux & cpu=x64 & libc=musl languageName: node linkType: hard -"@next/swc-win32-arm64-msvc@npm:15.1.6": - version: 15.1.6 - resolution: "@next/swc-win32-arm64-msvc@npm:15.1.6" +"@next/swc-win32-arm64-msvc@npm:15.2.0-canary.30": + version: 15.2.0-canary.30 + resolution: "@next/swc-win32-arm64-msvc@npm:15.2.0-canary.30" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@next/swc-win32-x64-msvc@npm:15.1.6": - version: 15.1.6 - resolution: "@next/swc-win32-x64-msvc@npm:15.1.6" +"@next/swc-win32-x64-msvc@npm:15.2.0-canary.30": + version: 15.2.0-canary.30 + resolution: "@next/swc-win32-x64-msvc@npm:15.2.0-canary.30" conditions: os=win32 & cpu=x64 languageName: node linkType: hard @@ -7644,7 +7644,7 @@ __metadata: imagesloaded: "npm:^5.0.0" isotope-layout: "npm:^3.0.6" jarallax: "npm:^2.2.1" - next: "npm:15.1.6" + next: "npm:15.2.0-canary.30" payload: "npm:^3.20.0" photoswipe: "npm:^5.4.4" postcss: "npm:^8" @@ -7701,19 +7701,19 @@ __metadata: languageName: node linkType: hard -"next@npm:15.1.6": - version: 15.1.6 - resolution: "next@npm:15.1.6" +"next@npm:15.2.0-canary.30": + version: 15.2.0-canary.30 + resolution: "next@npm:15.2.0-canary.30" dependencies: - "@next/env": "npm:15.1.6" - "@next/swc-darwin-arm64": "npm:15.1.6" - "@next/swc-darwin-x64": "npm:15.1.6" - "@next/swc-linux-arm64-gnu": "npm:15.1.6" - "@next/swc-linux-arm64-musl": "npm:15.1.6" - "@next/swc-linux-x64-gnu": "npm:15.1.6" - "@next/swc-linux-x64-musl": "npm:15.1.6" - "@next/swc-win32-arm64-msvc": "npm:15.1.6" - "@next/swc-win32-x64-msvc": "npm:15.1.6" + "@next/env": "npm:15.2.0-canary.30" + "@next/swc-darwin-arm64": "npm:15.2.0-canary.30" + "@next/swc-darwin-x64": "npm:15.2.0-canary.30" + "@next/swc-linux-arm64-gnu": "npm:15.2.0-canary.30" + "@next/swc-linux-arm64-musl": "npm:15.2.0-canary.30" + "@next/swc-linux-x64-gnu": "npm:15.2.0-canary.30" + "@next/swc-linux-x64-musl": "npm:15.2.0-canary.30" + "@next/swc-win32-arm64-msvc": "npm:15.2.0-canary.30" + "@next/swc-win32-x64-msvc": "npm:15.2.0-canary.30" "@swc/counter": "npm:0.1.3" "@swc/helpers": "npm:0.5.15" busboy: "npm:1.6.0" @@ -7758,7 +7758,7 @@ __metadata: optional: true bin: next: dist/bin/next - checksum: 10c0/261d27589b159387700df5f40de7dee6edfc84525a090e2b29326084124fac87b033dea8b24ada2b6ade25ffc7e2169383b6e19c96ca0c33adb830f76a6d75be + checksum: 10c0/5337735dcd385601e427f8257db648756c6ff5b5087aca93b5ac0bc921b803e789a2607d2067173003373286ffa22fb115b295bd95f3a50486dddae9ebedcf04 languageName: node linkType: hard