Skip to content

Commit 3a8c43e

Browse files
committed
fix build
1 parent c6e1663 commit 3a8c43e

File tree

2 files changed

+24
-19
lines changed

2 files changed

+24
-19
lines changed

gatsby-config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
require("dotenv").config({
2+
path: `.env.${process.env.NODE_ENV}`,
3+
})
4+
15
module.exports = {
26
plugins: [
37
`gatsby-plugin-offline`,
@@ -35,4 +39,4 @@ module.exports = {
3539
},
3640
},
3741
],
38-
}
42+
}

package.json

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@
77
"url": "https://github.com/jazibsawar/gatsby-blog-cosmicjs/issues"
88
},
99
"dependencies": {
10-
"gatsby": "^2.19.12",
11-
"gatsby-background-image": "^0.9.14",
12-
"gatsby-image": "^2.2.40",
13-
"gatsby-plugin-google-analytics": "^2.1.35",
14-
"gatsby-plugin-offline": "^3.0.34",
15-
"gatsby-plugin-react-helmet": "^3.1.22",
16-
"gatsby-plugin-sharp": "^2.4.5",
17-
"gatsby-plugin-typography": "^2.3.22",
10+
"gatsby": "^2.20.17",
11+
"gatsby-background-image": "^1.1.1",
12+
"gatsby-image": "^2.3.4",
13+
"gatsby-plugin-google-analytics": "^2.2.4",
14+
"gatsby-plugin-offline": "^3.1.4",
15+
"gatsby-plugin-react-helmet": "^3.2.4",
16+
"gatsby-plugin-sharp": "^2.5.6",
17+
"gatsby-plugin-typography": "^2.4.3",
1818
"gatsby-source-cosmicjs": "^1.1.0",
19-
"gatsby-source-filesystem": "^2.1.48",
20-
"gatsby-transformer-sharp": "^2.3.14",
19+
"gatsby-source-filesystem": "^2.2.4",
20+
"gatsby-transformer-sharp": "^2.4.6",
2121
"lodash": "^4.17.15",
22-
"react": "^16.12.0",
23-
"react-dom": "^16.12.0",
24-
"react-helmet": "^5.2.1",
22+
"react": "^16.13.1",
23+
"react-dom": "^16.13.1",
24+
"react-helmet": "^6.0.0",
2525
"react-typography": "^0.16.19",
2626
"typeface-merriweather": "0.0.72",
2727
"typeface-montserrat": "0.0.75",
@@ -30,8 +30,8 @@
3030
},
3131
"devDependencies": {
3232
"eslint": "^6.8.0",
33-
"eslint-plugin-react": "^7.18.3",
34-
"prettier": "^1.19.1"
33+
"eslint-plugin-react": "^7.19.0",
34+
"prettier": "^2.0.4"
3535
},
3636
"homepage": "https://github.com/gatsbyjs/gatsby-starter-blog#readme",
3737
"keywords": [
@@ -44,13 +44,14 @@
4444
"url": "git+https://github.com/gatsbyjs/gatsby-starter-blog.git"
4545
},
4646
"scripts": {
47+
"dev": "npm run develop",
4748
"start": "gatsby build; gatsby serve --port $PORT",
48-
"dev": "gatsby develop",
4949
"lint": "./node_modules/.bin/eslint --ext .js,.jsx --ignore-pattern public .",
5050
"test": "echo \"Error: no test specified\" && exit 1",
5151
"format": "prettier --trailing-comma es5 --no-semi --single-quote --write 'src/**/*.js' 'src/**/*.md'",
52-
"develop": "gatsby develop",
52+
"develop": "ENABLE_GATSBY_REFRESH_ENDPOINT=true gatsby develop;",
53+
"poll-content": "while sleep 1; do curl -X POST http://localhost:8000/__refresh; done",
5354
"build": "gatsby build",
5455
"fix-semi": "eslint --quiet --ignore-pattern node_modules --ignore-pattern public --parser babel-eslint --no-eslintrc --rule '{\"semi\": [2, \"never\"], \"no-extra-semi\": [2]}' --fix gatsby-node.js"
5556
}
56-
}
57+
}

0 commit comments

Comments
 (0)