Updates the published JSON Schemas from the supabase/cli release
workflow.
Generated by `scripts/publish-schemas.ts` in supabase/cli from
`apps/cli/schemas`. Regenerate them in supabase/cli rather than editing
this folder.
Published versions below the current one are frozen and never rewritten.
Auto-merge is enabled: the PR squash-merges once a reviewer approves it.
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Updates the published JSON Schemas from the supabase/cli release
workflow.
Generated by `scripts/publish-schemas.ts` in supabase/cli from
`apps/cli/schemas`. Regenerate them in supabase/cli rather than editing
this folder.
Published versions below the current one are frozen and never rewritten.
Auto-merge is enabled: the PR squash-merges once a reviewer approves it.
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Updates the published JSON Schemas from the supabase/cli release
workflow.
Generated by `scripts/publish-schemas.ts` in supabase/cli from
`apps/docs/public/schemas` — edit the schemas there rather than this
folder.
Published versions below the current one are frozen and never rewritten.
Auto-merge is enabled: the PR squash-merges once a reviewer approves it.
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Updates the published JSON Schemas from the supabase/cli release
workflow.
Generated by `scripts/publish-schemas.ts` in supabase/cli from
`apps/docs/public/schemas` — edit the schemas there rather than this
folder.
Published versions below the current one are frozen and never rewritten.
Auto-merge is enabled: the PR squash-merges once a reviewer approves it.
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Colum Ferry <cferry09@gmail.com>
## Problem
The Supabase CLI's config, project-config and `supabase.lock` JSON
schemas declare `$id`s under
`https://supabase.com/schemas/<name>/v<N>.json`, and editors such as
Even Better TOML fetch them from the `$schema` URL. Nothing is served at
that path yet, so those URLs 404.
## Solution
- Adds `apps/www/public/schemas` with v1 of the three schemas. They're
generated in supabase/cli, and from now on its stable releases open a PR
here when one changes (supabase/cli#7397)
- `/schemas/:path*` responses send `access-control-allow-origin: *` and
`cache-control: public, max-age=3600`, so browser-based editors and
validators can fetch them and a new release shows up within the hour.
Covered in `next.config.test.ts`
- `/apps/www/public/schemas/ @supabase/cli` in CODEOWNERS, so the CLI
team reviews those release PRs
- The folder is in `.prettierignore`. The CLI publishes these files byte
for byte, so reformatting them here would show up as a change on every
release
## Review instructions
1. Open `/schemas/config/v1.json` on the www preview
2. Check it returns the schema as JSON, with
`access-control-allow-origin: *` and the cache header (`curl -sI
<preview>/schemas/config/v1.json`)
Closes CLI-2865