Slice Simulator on Netlify

I'm trying to setup the new live preview feature as per New Page Builder - Documentation - Prismic

It says "

Your project must be deployed. Once deployed, you can check to ensure that the slice simulator is working by visiting

However, when I view that page I get an internal server error.

Looking at Netlify's logs I see this. When I try the file locally it works though.

Any ideas?

Hi @tim5,

Have you set up the slice-simulator page in your project? It seems like it might be treating it as a normal Prismic page and expecting to retrieve content via your /page/[...uid] route.

I recommend checking out one of our starter projects to see what this route should look like:

That project uses the app router and it seems that you're using the pages router, but the slice-simulator page should be the same in either case.

Let me know if this works for you or if you have any other questions.


Got the previews working. Issue was that the site was behind a password on Netlify.

Glad to hear you got it working, @tim5! Thanks for posting your solution :fire: :100: