Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Update www changelog octokit declaration to use GITHUB_CHANGELOG_APP_PRIVATE_KEY (#45087)

Joshen Lim1fa48a26f0d5
diff --git a/apps/www/pages/changelog.tsx b/apps/www/pages/changelog.tsx
index 03aa6a12dcd..069bd3c2080 100644
--- a/apps/www/pages/changelog.tsx
+++ b/apps/www/pages/changelog.tsx
@@ -142,7 +142,12 @@ export const getServerSideProps: GetServerSideProps = async ({ res, query }) =>
const restPage = query.restPage ? Number(query.restPage) : 1
const octokitRest = new OctokitRest({
- auth: process.env.GITHUB_CHANGELOG_APP_REST_KEY,
+ authStrategy: createAppAuth,
+ auth: {
+ appId: process.env.GITHUB_CHANGELOG_APP_ID,
+ installationId: process.env.GITHUB_CHANGELOG_APP_INSTALLATION_ID,
+ privateKey: process.env.GITHUB_CHANGELOG_APP_PRIVATE_KEY,
+ },
})
// uses the rest api