Skip to content

Commit

Permalink
chore: write empty object to the data file by default
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Aug 12, 2020
1 parent da64b13 commit bb5c574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/gatsby-source-swiftype/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ exports.onPreBootstrap = ({ reporter }, pluginOptions) => {

if (!fs.existsSync(dataFile)) {
reporter.info('Creating related-pages.json file');
fs.writeFileSync(dataFile, '');
fs.writeFileSync(dataFile, '{}');
}
};

Expand Down

0 comments on commit bb5c574

Please sign in to comment.