Skip to content

Commit 1abfe29

Browse files
notrabynnoj
authored andcommitted
fix: don't error no token provided (#87)
* fix: don't error when no token provided * chore: run prettier
1 parent e17d944 commit 1abfe29

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

gatsby-source-graphcms/gatsby-node.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ exports.onPreBootstrap = ({ reporter }, pluginOptions) => {
1717
return reporter.panic(
1818
'gatsby-source-graphcms: You must provide your GraphCMS endpoint URL'
1919
)
20-
21-
if (!pluginOptions || !pluginOptions.token)
22-
return reporter.panic(
23-
'gatsby-source-graphcms: You must provide a GraphCMS API token'
24-
)
2520
}
2621

2722
const createSourcingConfig = async (gatsbyApi, { endpoint, token }) => {

0 commit comments

Comments
 (0)