# Static build from preview data

**URL:** <https://community.prismic.io/t/static-build-from-preview-data/13219>\
**Category:** Developing with Prismic\
**Created:** [May 28, 2023, 7:01am UTC](https://community.prismic.io/t/static-build-from-preview-data/13219 "2023-05-28T07:01:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sideboo](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@sideboo](https://community.prismic.io/u/sideboo)\
**Post date:** [May 28, 2023, 7:01am UTC](https://community.prismic.io/t/static-build-from-preview-data/13219/1 "2023-05-28T07:01:18Z")

</div>

Would it be possible to somehow create static build from what is visible in preview mode.

I have a staging link and the regular preview mode works well when editing but doesn't always work that well for sharing with stakeholders, who may not even have a Prismic account.

Although I understand this isn't a feature that exist I'm curious if it would be technically possible, perhaps manually setting a "ref" upon build?

It doesn't have to be perfect but would help tremendously when sharing new features with a wider non-technical team.

I'm currently using NextJS.

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:** [May 30, 2023, 7:04pm UTC](https://community.prismic.io/t/static-build-from-preview-data/13219/3 "2023-05-30T19:04:50Z")

</div>

I think you can achieve this by using the "ref" from a release.

When you create a release in Prismic, it generates a specific "ref" that represents the content at that point in time. You can use this "ref" to fetch and render the content in your Next.js application during the build process.

> **[The Rest API Browser](https://prismic.io/docs/the-rest-api-browser#select-a-ref)**
>
> Every Prismic repository includes an API browser that will help you discover your API, test your queries, and display the JSON results.
