Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

Commit

Permalink
Birkir 3.0.2
Browse files Browse the repository at this point in the history
Updated to work with [email protected] along with a functional refactor to handle the new approach for creating new pages from a template.
  • Loading branch information
raulg authored Apr 3, 2019
1 parent 1e08db6 commit c9126bc
Show file tree
Hide file tree
Showing 15 changed files with 706 additions and 666 deletions.
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
# registry.npmjs.org/:_authToken=${NPM_TOKEN}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Example website demo that shows how to use the new Gatsby plugin for Prismic. Yo

It showcases how a website for a coffee store could be designed and built, as well as the techniques you will have to use to generate pages dynamically when using a Prismic repository as a data source, while also being able to use the **preview** and **release** features.

Based on the gatsby default starter and uses the [gatsby-source-prismic-graphql](https://www.npmjs.com/package/@prismicio/gatsby-source-prismic-graphql) plugin for creating pages that can be drafted and previewed. Refer to its documentation for more details on how to use it.
Based on the gatsby default starter and uses the [gatsby-source-prismic-graphql](https://github.com/birkir/gatsby-source-prismic-graphql) plugin for creating pages that can be drafted and previewed. Refer to its documentation for more details on how to use it.

A deployment demo is available in Netlify: https://gatsby-coffee-demo-alpha.netlify.com/

Expand Down
4 changes: 2 additions & 2 deletions gatsby-browser.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { registerResolvers } = require('@prismicio/gatsby-source-prismic-graphql');
const { registerLinkResolver } = require('gatsby-source-prismic-graphql');
const { linkResolver } = require('./src/utils/linkResolver');

registerResolvers(linkResolver);
registerLinkResolver(linkResolver);
13 changes: 12 additions & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,22 @@ module.exports = {
plugins: [
`gatsby-plugin-react-helmet`,
{
resolve: `@prismicio/gatsby-source-prismic-graphql`,
resolve: `gatsby-source-prismic-graphql`,
options: {
repositoryName: `prismic-gatsby-coffee`,
path: '/preview',
previews: true,
pages: [{
type: 'Product',
match: '/products/:uid',
path: '/products',
component: require.resolve('./src/templates/product.js')
},{
type: 'Blog_post',
match: '/blog/:uid',
path: '/blog/',
component: require.resolve('./src/templates/blogPost.js')
}]
}
},
`gatsby-plugin-sass`,
Expand Down
319 changes: 0 additions & 319 deletions gatsby-node.js

This file was deleted.

7 changes: 0 additions & 7 deletions gatsby-ssr.js

This file was deleted.

Loading

0 comments on commit c9126bc

Please sign in to comment.