Skip to Main Content
Builder.io Ideas
Created by Alex Patterson
Created on Dec 16, 2021

Customization of Preview URL

When previewing a site using the vision icon and dropdown, I would like to customize the url that is predefined for preview.

In nextjs it is hard to pull query params (need middleware) for static sites. The current suggested way to perform a preview is to send a secret token. It is this token I would like to set this secret in Builder so that I can send to my API endpoint. It will then set a cookie and redirect over to my preview page.

https://nextjs.org/docs/advanced-features/preview-mode

  • Attach files