transitive-bullshit / nextjs-notion-starter-kit

Deploy your own Notion-powered website in minutes with Next.js and Vercel.
https://transitivebullsh.it/nextjs-notion-starter-kit
MIT License
6.27k stars 5.29k forks source link

Somtimes new change can't build unless redeploy #269

Open chiperman opened 2 years ago

chiperman commented 2 years ago

When I change some content or add a new page, it will not appear unless I redeploy in the vercel. Can anyone know why? Is it beacuse I have many linked database or pages in the program?

transitive-bullshit commented 2 years ago

Hey @chiperman, as always, please include a notion ID and/or public notion site to test with. There are so many things that could possibly be going on, that without a reproduction example, it's difficult for me to give a constructive response.

New deployments will for sure always update the latest content. Otherwise, the default is to use next.js's ISSR to regenerate pages in the background once every X seconds. If that fails for any reason (like the renderer throwing an error or the notion API returning something unexpected), then next.js will use the most recent version of that page.

Make sure to check your Vercel deployment logs to see what's going on when refreshing a page to make sure that it's actually getting the latest version and that there are no unexpected errors.

chiperman commented 2 years ago

@transitive-bullshit This is my open site: https://notion.chiperman.tk and the notion ID is : f7798e49ceb84f7c89931e85a92af60b, and I have just added this git-command page to the blog-post database. But I can't see it unless I try to redeploy it in the Vercel. It won't appear, I was wondering if this problem is caused by the fact that I have too many associated databases in the whole project.

截屏2022-04-19 15 13 17
Kevin-Bian21 commented 2 years ago

Yes, I have the same problem. When I add or change content in the notion, I need to manually redeploy it in vercel to make it effective。

Krystal-zqy commented 2 years ago

I have the same problem.

PersistVenture commented 2 years ago

I also have same issues. :(

PersistVenture commented 2 years ago

@chiperman hey! have you resolved the issue? If so, can you please share what steps you did to resolve the issue.

Thanks.

chiperman commented 2 years ago

@PersistVenture Sorry, I still have this problem and I think maybe we have too many include pages in the project cause when I remove everything and try to add it at once it will work properly. But once reached a point, it will appear the same question.

thefinnomenon commented 2 years ago

Same issue

nooobcoder commented 2 years ago

Same issue @transitive-bullshit I also tweaked the revalidate: 30 to build after 30 secs, but no luck

3chospirits commented 2 years ago

Same issue here as well. Any ideas for fixes?

fantasyEthan commented 2 years ago

I have the same problem as well. Wonder if it is the problem of network.

kevinjalbert commented 2 years ago

I think the suggestion in https://github.com/transitive-bullshit/nextjs-notion-starter-kit/issues/319 fixes this issue.

I was unable to get new pages to show up, but with this everything works now.

sivannavis commented 1 year ago

Hi! I waited long enough and it's still not synced. Is it like an automatic redeploy on Vercel? I even tried following the changes in https://github.com/transitive-bullshit/nextjs-notion-starter-kit/issues/319, and it's still now automatically updated. Any idea to make the sync easier and faster?

breezjin commented 1 year ago

Same issue here as well.

Nexus-Gits commented 1 year ago

new change can't build unless redeploy. Also Home page post images not updated. but other updates show without redploy. but new post & home page cover images not update automatically.