# Preview doesnt work for existing pages

**URL:** <https://forum.builder.io/t/preview-doesnt-work-for-existing-pages/5440>\
**Category:** Bugs\
**Created:** [April 24, 2024, 7:52pm UTC](https://forum.builder.io/t/preview-doesnt-work-for-existing-pages/5440 "2024-04-24T19:52:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nilesh](https://avatars.discourse-cdn.com/v4/letter/n/f475e1/32.png) [@nilesh](https://forum.builder.io/u/nilesh)\
**Post date:** [April 24, 2024, 7:52pm UTC](https://forum.builder.io/t/preview-doesnt-work-for-existing-pages/5440/1 "2024-04-24T19:52:56Z")

</div>

I’m using NextJs 14 with Node v20. The builder and preview works fine when I use it to create a new page. But its continuosly throwing exceptions when I’m trying to edit an pages for which path and files are already defined. It always says “We are having trouble connecting to your site”

I followed at the steps that are mentioned in the below link, but it is still now working.

“[Getting the Preview URL Working - Builder.io](https://www.builder.io/c/docs/guides/preview-url-working#load-iframe)”

**Builder content link**

> **[Builder.io: Visual Development Platform](https://builder.io/content/e43301d3c82141249117e5eb93c775bf)**
>
> Drag and drop with your components, right within your existing site or app. Build and optimize digital experiences for any tech stack, visually..

**Builder public api key**  
NEXT\_PUBLIC\_BUILDER\_API\_KEY=f9874168fedd4d53902696d6d03cf54e

**Detailed steps to reproduce the bug**  
Just create a latest NextJs project and try to edit a path for which path in defined.

**Code stack you are integrating Builder with**  
NextJS

 ![Untitled](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/f/f6b6861d0d308145fd057710fac3e5f77896b3d1.jpeg)

---

<div class="post-metadata">

**Author:** ![anon43891756](https://avatars.discourse-cdn.com/v4/letter/a/50afbb/32.png) [@anon43891756](https://forum.builder.io/u/anon43891756)\
**Post date:** [April 26, 2024, 12:59pm UTC](https://forum.builder.io/t/preview-doesnt-work-for-existing-pages/5440/2 "2024-04-26T12:59:06Z")

</div>

Hi @nilesh, Welcome to the [Builder.io](http://Builder.io) Forum!

You seem to be running on localhost so we won’t be able to debug this directly. For this, you can get help from [Editing and Previewing Your Site - Builder.io](https://www.builder.io/c/docs/guides/preview-url)

Also you can try to install the builder extension [Builder Chrome extension - Builder.io](https://www.builder.io/c/docs/chrome-extension)
