Open scb-mchaines opened 4 years ago
On the latest beta release, it looks like there is some risk of publicly exposing access keys. Steps:
previews: false
{ resolve: 'gatsby-source-prismic-graphql', options: { repositoryName: 'my-repository', accessToken: 'secret-access-token', path: '/preview', previews: false, pages: [{ type: 'Page', match: '/:uid', path: '/', component: require.resolve('./src/components/page.js'), }] } }
Originally posted by @scb-mchaines in https://github.com/birkir/gatsby-source-prismic-graphql/issues/45#issuecomment-557228962
What the purpose of window.prismic and window.prismicGatsbyOptions in a production build without a preview?
window.prismic
window.prismicGatsbyOptions
On the latest beta release, it looks like there is some risk of publicly exposing access keys. Steps:
previews: false
. Mine looks something like:Originally posted by @scb-mchaines in https://github.com/birkir/gatsby-source-prismic-graphql/issues/45#issuecomment-557228962