Skip to content

Commit

Permalink
Fix fetch module import so that latest release version would be shown…
Browse files Browse the repository at this point in the history
… on website
  • Loading branch information
paskal committed Nov 11, 2024
1 parent a4772bd commit 979bba6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"node": ">=20.11.1",
"yarn": ">=1.22"
},
"packageManager": "yarn@1.22.22",
"packageManager": "yarn@1.22.22",
"scripts": {
"start": "npm-run-all dev",
"dev": "npm-run-all -l clean build:css -p dev:css dev:11ty",
Expand Down
2 changes: 1 addition & 1 deletion site/src/data/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = async function getLatestReleaseVersion() {
return currentData
}
try {
const fetch = await import('node-fetch')
const fetch = (await import('node-fetch')).default;
const res = await fetch(
'https://api.github.com/repos/umputun/remark42/releases'
)
Expand Down

0 comments on commit 979bba6

Please sign in to comment.