Hey @hachi.studio ,
First, I want to make sure I understand your use case:
- You have content in Prismic
- You have a Nextjs site running on localhost and online
- When you change your content in Prismic, you see the changes on localhost, but you don't see the changes online
Let me know if I misunderstood anything.
Assuming I understood correctly, there could be two issues:
- If you have deployed an export of your site.
One of the nice things about Next.js is that you can export your site and upload the export to a hosting provider like Vercel. The downside is that a site like that is 100% static. You need to redeploy manually every time you make any change.
We generally recommend deploying your Next project to a host like Vercel via a GitHub integration, so that when you change your project files, Vercel will automatically rebuild your site.
However, if you've got that working, you still need webhooks.
- If you need to set up webhooks.
If, instead of exporting your project, you upload your project files to a service like Vercel, Vercel can build your project for you, so you don't need to worry about building or exporting. You can also connect it to GitHub, so whenever you change your code Vercel rebuilds your project.
Then, you can add a webhook to your project, so that when you change your content in Prismic, it sends a notification to Vercel to rebuild your project. You can learn more about how to do that in the same doc.
I hope I understood your question, and that my answer is helpful. Please let me know if you have any other questions.