Skip to content

Commit

Permalink
chore: run format
Browse files Browse the repository at this point in the history
  • Loading branch information
DSchau committed Aug 12, 2020
1 parent a66d564 commit 8f5f2a5
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions www/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const sections = [
creators,
packages,
features,
apiCalls
apiCalls,
]

// Run the provided API on all defined sections of the site
Expand All @@ -37,24 +37,24 @@ async function runApiForSections(api, helpers) {
exports.onCreateWebpackConfig = ({ actions, plugins }) => {
const currentCommitSHA = require(`child_process`)
.execSync(`git rev-parse HEAD`, {
encoding: `utf-8`
encoding: `utf-8`,
})
.trim()

actions.setWebpackConfig({
plugins: [
plugins.define({
"process.env.COMMIT_SHA": JSON.stringify(currentCommitSHA)
})
]
"process.env.COMMIT_SHA": JSON.stringify(currentCommitSHA),
}),
],
})
}

exports.createSchemaCustomization = async helpers => {
await runApiForSections(`createSchemaCustomization`, helpers)

const {
actions: { createTypes }
actions: { createTypes },
} = helpers

// Explicitly define Airtable types so that queries still work
Expand Down Expand Up @@ -105,9 +105,9 @@ exports.createResolvers = async helpers => {
}

return []
}
}
}
},
},
},
})
}

Expand Down Expand Up @@ -137,7 +137,7 @@ exports.createPages = async helpers => {
fromPath: `/starters${fromSlug}`,
toPath: `/starters${toSlug}`,
isPermanent: true,
force: true
force: true,
})
})

Expand All @@ -152,14 +152,14 @@ exports.createPages = async helpers => {
fromPath: `/packages/*`,
toPath: `https://gatsbyjs.com/plugins/:splat`,
isPermanent: true,
force: true
force: true,
})

await createRedirect({
fromPath: `/creators/*`,
toPath: `https://gatsbyjs.com/partner/`,
isPermanent: true,
force: true
force: true,
})

// catch all redirect
Expand All @@ -168,6 +168,6 @@ exports.createPages = async helpers => {
fromPath: `/*`,
toPath: `https://gatsbyjs.com/:splat`,
isPermanent: true,
force: true
force: true,
})
}

0 comments on commit 8f5f2a5

Please sign in to comment.