diff --git a/components/changelog-generator.js b/components/changelog-generator.js
index 05d1822b..3eddab43 100644
--- a/components/changelog-generator.js
+++ b/components/changelog-generator.js
@@ -1,4 +1,4 @@
-import { buildDynamicMDX, buildDynamicMeta } from 'nextra/remote'
+import { buildDynamicMDX } from 'nextra/remote'
export const getChangelog = async (packageName, locale = 'en') => {
let page = 1
@@ -6,6 +6,8 @@ export const getChangelog = async (packageName, locale = 'en') => {
`https://api.github.com/repos/napi-rs/napi-rs/releases?per_page=100&page=${page}`,
{
headers: {
+ Accept: 'application/vnd.github+json',
+ 'X-GitHub-Api-Version': '2022-11-28',
Authorization: `token ${process.env.GITHUB_TOKEN}`,
},
},
@@ -18,6 +20,8 @@ export const getChangelog = async (packageName, locale = 'en') => {
`https://api.github.com/repos/napi-rs/napi-rs/releases?per_page=100&page=${page}`,
{
headers: {
+ Accept: 'application/vnd.github+json',
+ 'X-GitHub-Api-Version': '2022-11-28',
Authorization: `token ${process.env.GITHUB_TOKEN}`,
},
},
@@ -39,12 +43,11 @@ export const getChangelog = async (packageName, locale = 'en') => {
)
return `## ${release.tag_name}
+ }" target="_blank" rel="noopener">${release.tag_name}
${new Date(release.published_at).toLocaleDateString(locale)} \n${body}`
})
.join('\n\n'),
)),
- ...(await buildDynamicMeta()),
},
revalidate: 10,
}
diff --git a/components/sponsors.jsx b/components/sponsors.jsx
index 2d2eb1f4..7285b840 100644
--- a/components/sponsors.jsx
+++ b/components/sponsors.jsx
@@ -1,7 +1,7 @@
-import { useSSG } from 'nextra/ssg'
+import { useData } from 'nextra/hooks'
export function Sponsors() {
- const sponsorsSVG = useSSG()
+ const sponsorsSVG = useData()
const reg =
/