This is an automated email from the ASF dual-hosted git repository.
tison pushed a commit to branch dev
in repository
https://gitbox.apache.org/repos/asf/incubator-streampark-website.git
The following commit(s) were added to refs/heads/dev by this push:
new 2dd37722 [Fix] Node.js 18 has fetch out-of-the-box
2dd37722 is described below
commit 2dd37722d1c038d2611c22e50d745edbdb1e7abd
Author: tison <[email protected]>
AuthorDate: Wed May 15 21:59:28 2024 +0800
[Fix] Node.js 18 has fetch out-of-the-box
Signed-off-by: tison <[email protected]>
---
plugins/github-info.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/github-info.js b/plugins/github-info.js
index 62b3b8e5..3db4382d 100644
--- a/plugins/github-info.js
+++ b/plugins/github-info.js
@@ -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',