Skip to content

Commit

Permalink
chore: auto-update airtable mock file (#2382)
Browse files Browse the repository at this point in the history
  • Loading branch information
olaszakos authored Jan 23, 2024
1 parent 162128a commit 8114325
Show file tree
Hide file tree
Showing 2 changed files with 1,385 additions and 2,288 deletions.
6 changes: 6 additions & 0 deletions plugins/airtable.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,12 @@ const airtablePlugin = async function () {
async contentLoaded({ content, actions }) {
const { createData } = actions;
createData("airtable-events.json", JSON.stringify(content, null, 2));

// save mock file
fs.writeFileSync(
path.join(__dirname, "data", "airtable-mock.json"),
JSON.stringify(content, null, 2)
);
},

async postBuild({ outDir }) {
Expand Down
Loading

0 comments on commit 8114325

Please sign in to comment.