Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

How to disable the preview path as gatsby image fail on netlify build #211

Open
wooxudong opened this issue May 18, 2020 · 3 comments · May be fixed by ohlr/gatsby-source-prismic-graphql#2 or #234
Open

Comments

@wooxudong
Copy link

What I would like to achieve is that /preview and related page would not be created on build. I have this set up in my gatsby-config.js

        previews: false,
        omitPrismicScript: true,
        pages: [
          {
            type: 'Blogpost', // TypeName from prismic
            match: '/blog/:uid', // pages will be generated under this pattern
            component: require.resolve('./src/templates/blogTemplate.js'),
          },
        ],
        sharpKeys: [/image|photo|picture/, 'thumbnail'],

and this still create the /preview page

/preview/blogpost
/blog/test-blog
/preview
/blog/
/contact/
/
/intro/
/work/
@tahmid-shahriar
Copy link

I have the same problem, it's creating a preview route and I can't seem to disable it.

@tahmid-shahriar
Copy link

@arnaudlewis please take a look at this, a blank route can impact SEO i guess?

@ohlr
Copy link

ohlr commented May 27, 2020

The issue is present in 3.6.3-alpha.12.
Sitemap generation with gatsby-plugin-sitemap also reveals the pages to google...
Not cool

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants