Skip to content

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

chore: autoupdate Repositories section (#102)

Bobbie Soedirgo161580c0a9ce
diff --git a/web/traction.js b/web/traction.js
index b06e646cb6f..403775b8609 100644
--- a/web/traction.js
+++ b/web/traction.js
@@ -73,11 +73,19 @@ const main = async () => {
return result
})
+ for (const [name, _] of repos) {
+ let { data } = await axios.get(`https://api.github.com/repos/supabase/${name}`)
+ fs.writeFile(`./src/data/repos/${name}.json`, JSON.stringify(data, null, 2), 'utf8', (err) => {
+ if (err) throw err
+ console.log(`${name}.json saved.`)
+ })
+ }
+
fs.writeFile('./src/data/stars/stargazers.json', JSON.stringify(data, null, 2), 'utf8', function (
err
) {
if (err) throw err
- console.log('Saved.')
+ console.log('stargazers.json saved.')
})
}
main()