movie update to superbase #21
Answered
by
j471n
therockstarind
asked this question in
Q&A
-
when we update movie to superbase database movie show on local so whenwever we update any data we have to redeploy the app how we can fix that? |
Beta Was this translation helpful? Give feedback.
Answered by
j471n
Feb 16, 2023
Replies: 1 comment 2 replies
-
In my case my movies are showing in the about page. And to generate about page I am using MDX, So normally I have to redeploy the page otherwise it will throw error. But if you are not using MDX and you have a general Movies page then you do any of the two things:
I have made a simple guide which you can follow to create a supabase webook. You can check it out here. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you have to create a revalidate route on which supabase will send you a POST request as per my config. And I am also providing the secret key, which you need to store in your production environment variables.
You can check out my revalidate API route
And if you are unable to update the movies data on the website. try to debug the revalidate page, see what is happening when supabase hits the URL.
first try in the development and then send it to the production.