Skip to content

Commit

Permalink
[Fix] Node.js 18 has fetch out-of-the-box
Browse files Browse the repository at this point in the history
Signed-off-by: tison <[email protected]>
  • Loading branch information
tisonkun committed May 15, 2024
1 parent 5cc594c commit 2dd3772
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/github-info.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// A JavaScript function that returns an object.
// `context` is provided by Docusaurus. Example: siteConfig can be accessed from context.
// `opts` is the user-defined options.
const fetch = require('node-fetch');

async function githubInfo(context, opts) {
return {
name: 'github-info-plugin',
Expand Down

0 comments on commit 2dd3772

Please sign in to comment.