Hello,
It's difficult for me to troubleshoot without access to the code. You might want to check our Previews troubleshoot guide.
I have one question:
Have you set up routes or link resolver in your prismic client as described in this section? I don't see this setup.
Thanks,
Priyanka