Don't check api.json files into git (#3565)

These were needed when the docs lived in a different repo, but they
don't any more so we can get rid of them.

### Change Type
- [x] `internal` — Does not affect user-facing stuff
- [x] `chore` — Updating dependencies, other boring stuff
This commit is contained in:
alex 2024-04-24 16:58:26 +01:00 committed by GitHub
parent 59b7c25270
commit c9b7d328fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
28 changed files with 687 additions and 210019 deletions

View file

@ -295,9 +295,9 @@ export class ContentDatabase {
let contentDatabase: ContentDatabase | null = null
export async function getDb(opts = {} as { reset?: boolean }) {
if (!contentDatabase || opts.reset) {
const db = await connect(opts)
export async function getDb() {
if (!contentDatabase) {
const db = await connect({ mode: 'readonly' })
contentDatabase = new ContentDatabase(db)
}