# Unpublished posts cannot be previewd with Nuxt.js

**URL:** <https://community.prismic.io/t/unpublished-posts-cannot-be-previewd-with-nuxt-js/6818>\
**Category:** Developing with Prismic\
**Tags:** nuxtjs\
**Created:** [September 1, 2021, 5:52am UTC](https://community.prismic.io/t/unpublished-posts-cannot-be-previewd-with-nuxt-js/6818 "2021-09-01T05:52:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![t.dofuku](https://avatars.discourse-cdn.com/v4/letter/t/f475e1/32.png) [@t.dofuku](https://community.prismic.io/u/t.dofuku)\
**Post date:** [September 1, 2021, 5:52am UTC](https://community.prismic.io/t/unpublished-posts-cannot-be-previewd-with-nuxt-js/6818/1 "2021-09-01T05:52:04Z")

</div>

We have a newly launched static Nuxt.js site and preview is working just fine for edits to existing pages.

Then, we are trying to preview a new blog post before making it live (so the post has never published).

but,

- clicking the preview option from Prismic takes us to the correct url, but it becomes 404 not found.
- browsing to the 404.html page displays sharable button of [prismic.io](http://prismic.io), but the page is just 404 page. so actual content is not shown.

Is it possible to preview content for an entirely new page on a statically generated Nuxt.js site, or do we have the wrong expectations about that in the first place?

---

<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:** [September 1, 2021, 9:05am UTC](https://community.prismic.io/t/unpublished-posts-cannot-be-previewd-with-nuxt-js/6818/3 "2021-09-01T09:05:49Z")

</div>

Hello Taisei,

Welcome to the community!

It sounds like either you haven't set the fallback to 404 in your nuxt-config.js file:

> <https://github.com/prismicio/nuxtjs-website/blob/a2eae05415a62161db7169bc43501030af3f9d43/nuxt.config.js#L77>

or you haven't configured the linkresolver to handle a new custom type. This and other common issues are discussed in your preview troubleshooting document here...

> [@Troubleshooting: Content Previews](https://community.prismic.io/t/troubleshooting-previews/5449#im-using-link-resolver-but-its-still-not-working-8):
>
> 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 …

Thanks.

---

<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:** [September 8, 2021, 3:05pm UTC](https://community.prismic.io/t/unpublished-posts-cannot-be-previewd-with-nuxt-js/6818/4 "2021-09-08T15:05:44Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

---

<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, 3:27pm UTC](https://community.prismic.io/t/unpublished-posts-cannot-be-previewd-with-nuxt-js/6818/5 "2021-12-09T15:27:43Z")

</div>


