# Preview stuck on "Currently Rebuilding"

**URL:** <https://community.prismic.io/t/preview-stuck-on-currently-rebuilding/3945>\
**Category:** Developing with Prismic\
**Tags:** gatsby\
**Created:** [February 8, 2021, 7:35pm UTC](https://community.prismic.io/t/preview-stuck-on-currently-rebuilding/3945 "2021-02-08T19:35:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jorg](https://avatars.discourse-cdn.com/v4/letter/j/6de8d8/32.png) [@jorg](https://community.prismic.io/u/jorg)\
**Post date:** [February 8, 2021, 7:35pm UTC](https://community.prismic.io/t/preview-stuck-on-currently-rebuilding/3945/1 "2021-02-08T19:35:46Z")

</div>

I followed the tutorial on [Get Started with Gatsby Cloud - Prismic](https://prismic.io/docs/technologies/prismic-and-gatsby-cloud-gatsby)

But when I try to view a preview on Gatsby Cloud I get the message "currently rebuilding". While the build and deploy are both completed in the panel.

How can I debug this?

---

<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:** [February 9, 2021, 3:59am UTC](https://community.prismic.io/t/preview-stuck-on-currently-rebuilding/3945/2 "2021-02-09T03:59:07Z")

</div>

Hello @jorg, Welcome to the Community; I'll be happy to help you today!

Let's do a quick check of a few things:

- Have you seen any particular errors appearing in the build's log history?
- Have you correctly configured the webhooks and environment variables?
- From where are you starting the preview session? From the preview eye button of an unpublished document, a document in a release, or are you just clicking the **preview CMS** button in Gatsby Cloud?

---

<div class="post-metadata">

**Author:** ![jorg](https://avatars.discourse-cdn.com/v4/letter/j/6de8d8/32.png) [@jorg](https://community.prismic.io/u/jorg)\
**Post date:** [February 9, 2021, 8:03pm UTC](https://community.prismic.io/t/preview-stuck-on-currently-rebuilding/3945/4 "2021-02-09T20:03:23Z")

</div>

Hi Pauline, yes I found this error in the build history today:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/1/1d6a8bfaacc1ce46c939beef92b1f82b8082bcfd.png)

I doublechecked webhooks and env variables and starting from the preview eye button.

---

<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:** [February 9, 2021, 8:30pm UTC](https://community.prismic.io/t/preview-stuck-on-currently-rebuilding/3945/5 "2021-02-09T20:30:44Z")

</div>

It is weird if you performed every step it should work without a problem.  
Could it be something related to your project configuration?  
I've found this Github issue similar to yours:

1. [Gatsby doesn't always refresh changes #27609](https://github.com/gatsbyjs/gatsby/issues/27609)

---

<div class="post-metadata">

**Author:** ![jorg](https://avatars.discourse-cdn.com/v4/letter/j/6de8d8/32.png) [@jorg](https://community.prismic.io/u/jorg)\
**Post date:** [February 10, 2021, 8:13pm UTC](https://community.prismic.io/t/preview-stuck-on-currently-rebuilding/3945/6 "2021-02-10T20:13:17Z")

</div>

I think I found the solution: Gatsby develop was stuck in a loop because of postcss-typescript-d-ts. When I commented out this plugin it rendered a page. I got a new error though stating 404 pages can't be found.

 ![Screenshot 2021-02-10 at 21.07.52](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/2/2d3fa104ebb14b8bbbd5270be7a8a9005690c430.png)

404s are working locally as well as in the deploy though.

---

<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:** [February 17, 2021, 3:16pm UTC](https://community.prismic.io/t/preview-stuck-on-currently-rebuilding/3945/7 "2021-02-17T15:16:09Z")

</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:42pm UTC](https://community.prismic.io/t/preview-stuck-on-currently-rebuilding/3945/8 "2021-12-09T16:42:30Z")

</div>


