Skip to content

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

589 B
Raw Blame
import { globby } from 'globby'
import { create as createTar } from 'tar'

async function generate() {
  // Create a tar.gz archive of the generated docs, served at /docs/docs.tar.gz.
  // Sorted entries, portable headers, and a fixed mtime keep the output deterministic.
  const archivePath = 'public/docs.tar.gz'
  const entries = (await globby(['**'], { cwd: 'public/markdown' })).sort()
  await createTar(
    { gzip: true, file: archivePath, cwd: 'public/markdown', portable: true, mtime: new Date() },
    entries
  )
  console.log(`Created archive at ${archivePath}`)
}

generate()