Skip to content

Commit

Permalink
add step 1 fundamental
Browse files Browse the repository at this point in the history
  • Loading branch information
schabibi1 committed Aug 12, 2022
1 parent 97ca58c commit 154884a
Show file tree
Hide file tree
Showing 21 changed files with 35,113 additions and 30,967 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,4 @@ yarn-error.log
.pnp.js
# Yarn Integrity file
.yarn-integrity
node_modules
7 changes: 0 additions & 7 deletions gatsby-browser.js
Original file line number Diff line number Diff line change
@@ -1,7 +0,0 @@
/**
* Implement Gatsby's Browser APIs in this file.
*
* See: https://www.gatsbyjs.com/docs/browser-apis/
*/

// You can delete this file if you're not using it
17 changes: 17 additions & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
require("dotenv").config({
path: `.env.${process.env.NODE_ENV || "production"}`,
})

module.exports = {
siteMetadata: {
title: `Gatsby Default Starter`,
Expand All @@ -6,6 +10,7 @@ module.exports = {
siteUrl: `https://gatsbystarterdefaultsource.gatsbyjs.io/`,
},
plugins: [
`gatsby-plugin-react-helmet`,
`gatsby-plugin-image`,
{
resolve: `gatsby-source-filesystem`,
Expand All @@ -30,5 +35,17 @@ module.exports = {
icon: `src/images/gatsby-icon.png`, // This path is relative to the root of the site.
},
},
{
resolve: 'gatsby-source-storyblok',
options: {
accessToken: process.env.GATSBY_PREVIEW_STORYBLOK,
version: process.env.NODE_ENV === 'production' ? 'published' : 'draft',
localAssets: true, // Optional parameter to download the images to use with Gatsby Image Plugin
// languages: ['de', 'at'] // Optional parameter. Omission will retrieve all languages by default.
}
},
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
// `gatsby-plugin-offline`,
],
}
4 changes: 1 addition & 3 deletions gatsby-ssr.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
* See: https://www.gatsbyjs.com/docs/ssr-apis/
*/

exports.onRenderBody = ({ setHtmlAttributes }) => {
setHtmlAttributes({ lang: `en` })
}
// You can delete this file if you're not using it
Loading

0 comments on commit 154884a

Please sign in to comment.