# Prismic-toolbar not visible

**URL:** <https://community.prismic.io/t/prismic-toolbar-not-visible/3067>\
**Category:** Developing with Prismic\
**Tags:** reactjs\
**Created:** [December 8, 2020, 3:54pm UTC](https://community.prismic.io/t/prismic-toolbar-not-visible/3067 "2020-12-08T15:54:34Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![kf1](https://avatars.discourse-cdn.com/v4/letter/k/ecd19e/32.png) [@kf1](https://community.prismic.io/u/kf1)\
**Post date:** [December 8, 2020, 3:54pm UTC](https://community.prismic.io/t/prismic-toolbar-not-visible/3067/1 "2020-12-08T15:54:34Z")

</div>

Dear Prismic community,  
I am running Prismic with Next.js v10 and using the new toolbar script:

```auto
<script
  async
  defer
  src="//static.cdn.prismic.io/prismic.js?new=true&repo=MY_REPO"
/>

```

The script is loaded and seems to be executed, which leads to this iframe with an empty body being appended to the page body:

```auto
<iframe src="https://MY_REPO.prismic.io/prismic-toolbar/4.0.2/iframe.html" style="display: none !important;"></iframe>

```

However, it does not append the visible toolbar (`div` with id `prismic-toolbar-v2`) to my page and does not add a preview cookie to the local host.

The behavior is the same in Chrome/Safari/Firefox and independent of whether I visit the dev-server, prod server or a static export. I have all ad/tracking blockers turned off or use incognito mode respectively.

I am happy for any suggestions, as this is preventing me from working with previews.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [December 8, 2020, 8:04pm UTC](https://community.prismic.io/t/prismic-toolbar-not-visible/3067/2 "2020-12-08T20:04:12Z")

</div>

Hello Korbinian, welcome to the community!

If you're using the the latests versions of Next and the toolbar, along with the proper Preview configuration, you shouldn’t be having any trouble, so it's really weird.

How have you configured the Preview in both your repository and in your project?

He're the docs for how to Handle document previews with Next:

> **[Using Prismic with Next.js - Prismic](https://prismic.io/docs/technologies/prismic-and-nextjs#handling-document-previews)**

---

<div class="post-metadata">

**Author:** ![kf1](https://avatars.discourse-cdn.com/v4/letter/k/ecd19e/32.png) [@kf1](https://community.prismic.io/u/kf1)\
**Post date:** [December 9, 2020, 8:09am UTC](https://community.prismic.io/t/prismic-toolbar-not-visible/3067/4 "2020-12-09T08:09:03Z")

</div>

Hi Paulina,  
thanks for the quick reply.

I have configured the previews according to the documentation and previews themselves do work as expected.  
I just can't see the toolbar. 😢

I will test with different devices / browsers / accounts to see if I can pinpoint the issue.

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [December 10, 2020, 5:07am UTC](https://community.prismic.io/t/prismic-toolbar-not-visible/3067/5 "2020-12-10T05:07:44Z")

</div>

That's really unusual, if you have the correct script there shouldn’t be a problem.

Yes, if you're able to catch any other behaviours or if you get to see it somewhere let me know

Thanks

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [December 10, 2020, 3:08pm UTC](https://community.prismic.io/t/prismic-toolbar-not-visible/3067/7 "2020-12-10T15:08:23Z")

</div>

Is your website being deployed statically ?

---

<div class="post-metadata">

**Author:** ![kf1](https://avatars.discourse-cdn.com/v4/letter/k/ecd19e/32.png) [@kf1](https://community.prismic.io/u/kf1)\
**Post date:** [December 10, 2020, 3:20pm UTC](https://community.prismic.io/t/prismic-toolbar-not-visible/3067/8 "2020-12-10T15:20:26Z")

</div>

Yes, but as I said it's the same on a dev-server or a local node server in production mode.

However, we also have an issue with previews and static deployment. Now that you are asking, is there a known example of Next static export + Prismic deployment? So far, I only found ones that required running a node server in prod.

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [December 14, 2020, 5:02pm UTC](https://community.prismic.io/t/prismic-toolbar-not-visible/3067/9 "2020-12-14T17:02:01Z")

</div>

Hey @kf1, we do not have an example got a Next.js static export project yet.

Are you still experiencing issues with the Preview?  
If you are, I'm thinking it may be that you're just not logged in Prismic when you open your project and therefore you're not able to see the toolbar.  
Could this be the case?

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [December 22, 2020, 1:10am UTC](https://community.prismic.io/t/prismic-toolbar-not-visible/3067/11 "2020-12-22T01:10:42Z")

</div>

This issue has been closed due to inactivity. [Flag to reopen](https://community.prismic.io/t/re-open-a-thread/2175).

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [December 9, 2021, 4:58pm UTC](https://community.prismic.io/t/prismic-toolbar-not-visible/3067/12 "2021-12-09T16:58:37Z")

</div>



---

<div class="post-metadata">

**Author:** ![peter.zenger](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@peter.zenger](https://community.prismic.io/u/peter.zenger)\
**Post date:** [May 3, 2022, 6:17pm UTC](https://community.prismic.io/t/prismic-toolbar-not-visible/3067/13 "2022-05-03T18:17:38Z")

</div>

I'm seeing the same issue.  
Locally the toolbar appears, but in any live environment it loads, despite showing no errors or warnings, and previews working correctly besides the Toolbar iframe.

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [May 4, 2022, 2:30am UTC](https://community.prismic.io/t/prismic-toolbar-not-visible/3067/15 "2022-05-04T02:30:47Z")

</div>

Hey @peter.zenger, are you using the latest version of the toolbar script? It should look like this:  
`<script async defer src="https://static.cdn.prismic.io/prismic.js?new=true&repo=your-repository-name"></script>`

---

<div class="post-metadata">

**Author:** ![peter.zenger](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@peter.zenger](https://community.prismic.io/u/peter.zenger)\
**Post date:** [May 4, 2022, 3:41pm UTC](https://community.prismic.io/t/prismic-toolbar-not-visible/3067/16 "2022-05-04T15:41:07Z")

</div>

I am using the `prismicio/next` preview provider

` <PrismicPreview repositoryName={pageProps.prismicRepository}>`  
Previews work, it just doesn't load the preview iframe on deployed environments, and apps which embed links to these pages load the toolbar in it's own window.

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [May 5, 2022, 12:07am UTC](https://community.prismic.io/t/prismic-toolbar-not-visible/3067/17 "2022-05-05T00:07:41Z")

</div>

Are you opening the site in a browser where you're logged in on Prismic? The edit button should only appear for your repository users.

---

<div class="post-metadata">

**Author:** ![arvinwilderink](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/arvinwilderink/32/4577_2.png) [@arvinwilderink](https://community.prismic.io/u/arvinwilderink)\
**Post date:** [May 30, 2022, 11:02am UTC](https://community.prismic.io/t/prismic-toolbar-not-visible/3067/19 "2022-05-30T11:02:08Z")

</div>

I have exactly the same issue as @peter.zenger

---

<div class="post-metadata">

**Author:** ![Priyanka](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/priyanka/32/3223_2.png) [@Priyanka](https://community.prismic.io/u/Priyanka)\
**Post date:** [May 31, 2022, 12:56pm UTC](https://community.prismic.io/t/prismic-toolbar-not-visible/3067/21 "2022-05-31T12:56:09Z")

</div>

Hello @arvinwilderink

Could you please share your repository and Project source code? I'll troubleshoot the issue for you. You can send these details by private message though.

Thanks,  
Priyanka
