Skip to content

Commit 7155622

Browse files
fix: make tsc pass and run dev with webpack on Next.js 16
Agent-Logs-Url: https://github.com/ut-code/my-code/sessions/c2cdd556-55b9-4bdf-8a72-da4b7ab2f090 Co-authored-by: na-trium-144 <100704180+na-trium-144@users.noreply.github.com>
1 parent 77959cf commit 7155622

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/lib/chatHistory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ export async function migrateChatUser(oldUserId: string, newUserId: string) {
282282
const pagesList = await getPagesList();
283283
for (const lang of pagesList) {
284284
for (const page of lang.pages) {
285-
revalidateTag(
285+
updateTag(
286286
cacheKeyForPage({ lang: lang.id, page: page.slug }, newUserId)
287287
);
288288
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"scripts": {
1010
"prebuild": "npm run cf-typegen && tsx ./scripts/checkDocs.ts && tsx ./scripts/generateDocsMeta.ts && tsx ./scripts/copyAllDTSFiles.ts && tsx ./scripts/removeHinting.ts",
11-
"dev": "npm run prebuild && next dev",
11+
"dev": "npm run prebuild && next dev --webpack",
1212
"build": "next build --webpack",
1313
"start": "next start",
1414
"lint": "npm run cf-typegen && eslint .",

0 commit comments

Comments
 (0)