diff --git a/gatsby-node.js b/gatsby-node.js index 296fabc..89c2bb4 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -21,21 +21,18 @@ exports.createPages = async ({ graphql, actions }) => { } }`) console.log(data.bakingSupplies.edges); - data.bakingSupplies.edges.forEach(windowFullOfBabySharkCookies => { + data.bakingSupplies.edges.forEach(ahoyCookie => { actions.createPage({ -// A. ๐ŸฆŠ ยซAhoy! A path?!ยป Shouts Fox and embarks. -// A windowFullOfBabySharkCookies -// A. ๐ŸฆŠ ยซAhoy! A windowFullOfBabySharkCookies ?!ยป Barks Fox and embarks. - path: `${windowFullOfBabySharkCookies.node.name}`, -// // B. ๐Ÿฐ Bunny sings badly and bakes all the sharks. -// // B. is for bakingSong, sung badly by ๐Ÿฐ Bunny who bakes bad babySharks. +// A. ๐ŸฆŠ ยซAhoy! Cookie?!ยป Shouts Fox and embarks. + path: `${ahoyCookie.node.name}`, +// B. ๐Ÿฐ Bunny sings badly and bakes baby sharks. component: bakingSong, -// // C. ๐Ÿฏ is the context: { fox: 'is hungry for kitten' } +// C. ๐Ÿฏ is the context: { fox: 'is hungry for kitten' } context: { fox: 'is hungry for kitten', - id: windowFullOfBabySharkCookies.node.id, //babySharkBatch.localFile.id, + id: ahoyCookie.node.id, //babySharkBatch.localFile.id, }, -// D. ๐ŸŽฉ They defer the good cookies and maybe get bitten +// D. ๐ŸŽฉ Defer the good cookies and maybe get bitten // Where are the nodes? //console.log(data); // 3. Loop over the image nodes and for each create a page diff --git a/gatsby-ssr.js b/gatsby-ssr.js new file mode 100644 index 0000000..a481cf9 --- /dev/null +++ b/gatsby-ssr.js @@ -0,0 +1,36 @@ +// gatsby-ssr.js console.log('pop Up from your box ๐Ÿƒ joker ๐Ÿƒ ') +import React from "react"; +const OutsetaScriptComponent = () => { + return ( +