nextjs-notion-starter-kit icon indicating copy to clipboard operation
nextjs-notion-starter-kit copied to clipboard

Somtimes new change can't build unless redeploy

Open chiperman opened this issue 2 years ago • 15 comments

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?

chiperman avatar Apr 17 '22 04:04 chiperman

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.

transitive-bullshit avatar Apr 17 '22 17:04 transitive-bullshit

@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

chiperman avatar Apr 19 '22 07:04 chiperman

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。

Kevin-Bian21 avatar Apr 21 '22 04:04 Kevin-Bian21

I have the same problem.

Krystal-zqy avatar Apr 25 '22 05:04 Krystal-zqy

I also have same issues. :(

PersistVenture avatar May 02 '22 08:05 PersistVenture

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

Thanks.

PersistVenture avatar May 04 '22 03:05 PersistVenture

@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.

chiperman avatar May 04 '22 03:05 chiperman

Same issue

thefinnomenon avatar May 25 '22 00:05 thefinnomenon

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

nooobcoder avatar May 27 '22 06:05 nooobcoder

Same issue here as well. Any ideas for fixes?

3chospirits avatar Jun 18 '22 03:06 3chospirits

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

fantasyEthan avatar Jul 27 '22 13:07 fantasyEthan

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.

kevinjalbert avatar Sep 20 '22 02:09 kevinjalbert

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?

sivannavis avatar Nov 21 '22 01:11 sivannavis

Same issue here as well.

breezjin avatar Nov 28 '22 07:11 breezjin

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.

Nexus-Gits avatar Dec 04 '22 04:12 Nexus-Gits