gatsby-source-prismic | Gatsby source plugin for building websites | Plugin library
kandi X-RAY | gatsby-source-prismic Summary
kandi X-RAY | gatsby-source-prismic Summary
Gatsby source plugin for building websites using prismic.io as a data source
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of gatsby-source-prismic
gatsby-source-prismic Key Features
gatsby-source-prismic Examples and Code Snippets
Community Discussions
Trending Discussions on gatsby-source-prismic
QUESTION
When I try to deploy my Gatsby Site on Netlify, it stops deploying and throws the error gatsby-source-prismic - invalid plugin options
Local it builds perfect and I have no issues, I added a .env
file with PRISMIC_REPOSITORY_NAME
and PRISMIC_ACCESS_TOKEN
with the values from Prismic.io.
My plugin options are:
...ANSWER
Answered 2021-Jan-03 at 10:13When dealing with environment variables with Gatsby + Netlify, you have to prefix them with GATSBY_
to make them available to Netlify. So:
QUESTION
Issue:
I am using Prismic to send data through to my website.
In Prismic I have a Type (testimonial_list
) that consists of a group of content-relation fields (Prismic Type testimonials
).
To query the data on the inner Types I need to access them via the document field in graphql and use inline-fragments.
I have followed as instructed here: https://github.com/angeloashmore/gatsby-source-prismic#Query-Content-Relation-fields
Inside graphql I have managed to navigate to the testimonial
data-fields (on the document
field) but the document
field returns null, this is where I'm stuck. I can't work out why it would return null as the content exists and the fields are clearly being found in graphql.
Info:
My project is built using Gatsby and I'm using the plugin gatsby-source-prismic
v3.1.1
Here you can see I can access the correct field data and I am getting the right number of nodes returned but document
is empty:
This is the JSON for the testimonial_list
Type on Prismic:
ANSWER
Answered 2020-Jun-26 at 14:17Hey it might be something related to the gatsby-source-prismic plugin I would directly open an issue for it here if I were you: https://github.com/angeloashmore/gatsby-source-prismic/issues
QUESTION
I use gatsby-source-git to pull files from Github repository. It worked well, but I added some files into repository and I am not able to pull new files into my Gatsby project.
If I run this query in http://localhost:8000/___graphql
:
ANSWER
Answered 2020-May-30 at 07:01There only two files missing from the Tutorials
folder: step-by-step-guide-how-to-buy-agoras.md
and step-by-step-guide-how-to-store-agoras.md
.
I think that the issue is with the formatting of the frontmatter in these files, not with gatsby-source-git
.
As you can see, hat sets them apart from the other files is that they both have colon inside a value:
title: Agoras: How to Store
description: Agoras: How to Buy
You need to add quotes around those:
title: "Agoras: How to Store"
description: "Agoras: How to Buy"
Your query probably failed at parsing these, hence the files didn't appear. Let me know if this fixes your issue!
QUESTION
ANSWER
Answered 2020-Apr-30 at 16:17You can drop the wildcard from shx cp -R public/* ../server-project/public
, as the recursive flag will pick up everything in the source directory. This should get you what you are after -
QUESTION
I'm using CodeSandbox to make a Gatsby app and I'm trying to use Prismic for the backend. I set it up nicely, I'm sure, and I installed gatsby-source-prismic
to my project. However, when I add it to my config file and restart the project, it throws an error saying "Invalid Plugin Options". This is what's in my plugin file:
ANSWER
Answered 2020-Apr-18 at 22:46I just ran into this issue. It appears it is now required to provide JSON schemas, as described here in the docs : https://github.com/angeloashmore/gatsby-source-prismic#providing-json-schemas
edit: please also refer to https://github.com/angeloashmore/gatsby-source-prismic/blob/master/docs/migrating-from-v2-to-v3.md
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gatsby-source-prismic
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page