prismicio-community / nuxt-starter-prismic-blog

Blog project with Nuxt & Prismic
https://nuxt-starter-prismic-blog.vercel.app
Apache License 2.0
55 stars 32 forks source link

Realtime blog post updates #9

Closed MartCube closed 4 years ago

MartCube commented 4 years ago

I used the same project and uploaded it on Netlify with command generate. Everything works fine, however how should I update the blog right away when I make a new post ?

I tried to remove static module but then on the dynamic links i get 404 errors. I'm guessing i'm missing something or doing wrong.

MartCube commented 4 years ago

I was not aware about webhooks. In prismic dashboard there is an option to create webhooks whenever there is a change or new post created. Then in Netlify there is option under build & deploys to create build hooks.

With this setup, when client write a new post or edit you will trigger a new deploy on Netlify.