Ideas

Give us your best ideas!

Add better support for detecting if in a preview

Today when in a preview for a page which is live with a cookie banner of some sort the cookie banner takes up the entire preview image of a block or a page. This is annoying and eliminates the purpose of previews in a live environment.

If we somehow could better detect when in a preview or not (for example using nextjs draftMode). W could better get benefits by disabling stuff which is not necessary for a preview. Either using Next.js draftMode or by doing something else (such as sending a special header with a token we can identify like with LITIUM_CLOUD_TOKEN).

  • Christian Norrman
  • May 18 2025
  • Attach files
      Drop here to upload