# Preview mode cookie missing from non-local environment

**URL:** <https://community.prismic.io/t/preview-mode-cookie-missing-from-non-local-environment/15527>\
**Category:** Developing with Prismic\
**Tags:** nextjs, preview-cookies\
**Created:** [March 21, 2024, 12:20am UTC](https://community.prismic.io/t/preview-mode-cookie-missing-from-non-local-environment/15527 "2024-03-21T00:20:22Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [March 28, 2024, 9:22am UTC](https://community.prismic.io/t/preview-mode-cookie-missing-from-non-local-environment/15527/7 "2024-03-28T09:22:55Z")

</div>

I'm glad you were able to figure this out 🙂

For future readers this is also something listed in our preview troubleshooting guide:

> [@Troubleshooting: Content Previews](https://community.prismic.io/t/troubleshooting-previews/5449):
>
> This article is designed to help you troubleshoot Prismic Previews. NextJS If you're using Next.js make sure you have covered all the following setup steps. Install @prismicio/next to handle previews Add the [PrismicPreview](https://prismic.io/docs/setup-nextjs#add-prismicpreview) component to the root of your app [Configure the preview routes](https://prismic.io/docs/setup-nextjs#add-preview-routes)[Ensure your Prismic repository has the correct preview route](https://prismic.io/docs/setup-nextjs#configure-previews-in-your-prismic-repository)Other frameworks Have you added the Prismic preview toolbar script to your site? Check in the \<head\> or \<body\> of your pages to make sure the script …

---

_[View the full topic](https://community.prismic.io/t/preview-mode-cookie-missing-from-non-local-environment/15527)._
