You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when I was building the project, I found that Next SSG not worked. sub pages wasn't builded success.
Route (app) Size First Load JS
┌ ○ / 551 B 84.7 kB
└ ● /article/[slug] 428 B 84.6 kB
+ First Load JS shared by all 78.4 kB
├ chunks/596-ce7e8c7c8d41c1a3.js 26 kB
├ chunks/fd9d1056-a99b58d3cc150217.js 50.5 kB
├ chunks/main-app-f318128f92979073.js 219 B
└ chunks/webpack-6c6a017659fdd40a.js 1.7 kB
So I noticed that there was something wrong in the generateStaticParams function. when geting the sulg name, the fields was not exist.
// Return a list of `params` to populate the [slug] dynamic segmentexportasyncfunctiongenerateStaticParams(){constdatabase=awaitgetDatabase();returndatabase?.map((page)=>{constslug=page.properties.Slug?.**formula**?.string;// field errorreturn({id: page.id, slug });});}
I don't know the reason, may notion have upgrade the database definition. so I replaced it with this sentense:
when I was building the project, I found that Next SSG not worked. sub pages wasn't builded success.
So I noticed that there was something wrong in the
generateStaticParams
function. when geting the sulg name, the fields was not exist.I don't know the reason, may notion have upgrade the database definition. so I replaced it with this sentense:
It seems worked.
The text was updated successfully, but these errors were encountered: