Commit Graph
6113 Commits
Author SHA1 Message Date
2b419c70a1 chore: add usercentrics for consent management (#35384)
* chore: add usercentrics for consent management

* client component to make next.js happy

* address feedback

* move consent state to common

* fix import

* ensure page events are sent correctly

* add feature flag provider to ui library site

* fix ui lib 500 error

* skip in test env

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
Co-authored-by: Jordi Enric <jordi.err@gmail.com>
2025-05-05 13:18:48 +08:00
Tyler 7bf04545d8 docs: Add some missing descriptions to the CLI reference docs (#35434)
* Add description for supabase-config-push

* docs: Add descriptions to a few cli commands and command groups

* delete the unnecessary note about linking a project

* fix/add cli-latest file to gitignore
2025-05-04 09:28:35 +09:00
Ahmad Khan 9ee61be79d doc fixes (#35435) 2025-05-03 17:03:14 +00:00
Charis f611fa11d9 feat (content api): add schemas and models for search results and guides (#35284)
Add models and GraphQL interface definitions for search results and guides (representing Markdown documents such as tutorials, etc.).

These aren't connected to anything yet, but putting them in a separate
PR to keep the review short and relatively simple.

Towards DOCS-214
2025-05-02 12:03:41 -04:00
Max Holmberg 9016b84657 Remove + character from code blocks (#35414) 2025-05-02 15:44:56 +00:00
Charis 5718684991 chore (content api): generate types from root schema (#35283)
Ensure that resolvers are properly typed by adding a script to generate
types from the root schema.
2025-05-02 11:25:35 -04:00
Charis 02aea98053 docs(third-party auth,clerk): correct examples (#35412)
Correct the code examples for the Clerk third-party auth docs:
- Fix TypeScript error
- Change RLS policy check to accept both [Clerk v1 and v2
JWTs](https://clerk.com/docs/backend-requests/resources/session-tokens)

Pulled code samples from an example app that I've checked in to make
maintenance and testing easier in the future.
2025-05-02 11:13:19 -04:00
Inian c8a5c6736f fix(docs): update upgrading language (#35419) 2025-05-02 07:33:46 +00:00
Julian S 7307f96879 Update declarative-database-schemas.mdx (#35397)
The alert "Make sure your local database is stopped before diffing your schema." appears after completing the diff step.
It would be more useful to display it before performing the diff, to ensure that "supabase stop" is executed beforehand and not afterward.
2025-05-01 15:32:15 +00:00
yujiseok 2ca5a12854 fix broken Apple REST API link in auth-apple.mdx (#35404)
- replace broken Sign in with Apple REST API link
2025-05-01 15:25:22 +00:00
Charis 84ff291a09 fix(docs): wrappers tags (#35386)
Pull wrappers tags from tag docs_v*, not tag v*
2025-05-01 10:24:09 +10:00
Wen Bo Xie c638255cb2 fix: change notion to linear team mapping (#35363) 2025-04-30 20:54:53 +00:00
samroseandBobbie Soedirgo 0797b10bf3 docs: small correction in plan_filter doc for usage (#35379)
* docs: small correction in plan_filter doc for usage

* docs: fixing proofread comments

* docs: prettier formmatting fix

* docs: omit unnecessary `load` command

---------

Co-authored-by: Bobbie Soedirgo <bobbie@soedirgo.dev>
2025-04-30 15:48:57 -04:00
Nate Barbettini ae7759be9c fix(docs): Fix example file name in auth/quickstarts/nextjs.mdx (#35364)
fix: Fix example file name in auth/quickstarts/nextjs.mdx
2025-04-30 18:04:30 +00:00
Eduardo Gurgel 2004082a13 chore: add Eduardo to humans.txt (#35365) 2025-04-30 17:24:22 +08:00
Charis 9e8107c070 fix (content api): local dev introspection (#35279)
* feat (content api): add top-level schema query

Adds a top-level schema query that returns the stringified GraphQL
schema for this endpoint. Useful for LLMs to access the stringified
schema for prompting and tool calls.

Query shape:

```
query Search {
  schema
}
```

Query response:

```
{
  "data": {
    "schema": "schema {\n  query: RootQueryType\n}\n\ntype RootQueryType
{\n  \"\"\"Get the GraphQL schema for this endpoint\"\"\"\n  schema:
String\n}"
  }
}
```

Towards DOCS-214

* test (content api): add schema snapshot

Add schema snapshot test to prevent unintentional changes to public API
for this endpoint

* fixup! feat (content api): add top-level schema query

* fix (content api): local dev introspection

The validation rules that are used for security in production are
preventing GraphiQL from introspecting the schema in dev. Since this DX
feature is incredibly useful, I'm turning off the complexity and depth
validations for dev GraphiQL only. Local curls, etc., will still have
production-standard validation so it can be tested locally.
2025-04-29 16:00:34 -04:00
Charis ca1cd24a07 fix (content api): return graphql-spec compliant error (#35202)
GraphQL errors were occasionally returned as normal HTTP status code
errors, switched to using only GraphQL-spec compliant errors for the
/docs/api/graphql endpoint.
2025-04-29 15:51:07 -04:00
Charis f3583a05bc fix(docs): branch for wrappers docs (#35340)
Wrappers docs should not be pulled from the main branch, which contains
unreleased content, but instead from the latest release tag.
2025-04-29 15:39:46 -04:00
Charis e41d90926b feat (content api): graphql validation (#35191)
Continue building out the docs/api/graphql endpoint by adding more
validation:

-A query depth limiter
- A query complexity limiter

Also added dummy (empty) root resolver and schema, plus a dev-only
GraphiQL page for better DX.

Endpoint should still return a 404 for now as there is no resolver.
2025-04-29 15:27:21 -04:00
Charis a0f5c798df feat(content api): add dummy api/graphql route (#35141)
The first PR in a series to build out the Content API. Adds a dummy
GraphQL route with some tests: for now all this does is validate the
request body and return a 404.
2025-04-29 13:02:36 -04:00
Charis ee87cc20e8 ci(docs): fix build timeouts (#35336)
Fix build timeouts by skipping type generation for reference pages
2025-04-28 16:54:07 -04:00
Hemant Sharma 1a71f3487c Fixed pnpm command in local-development.mdx (#35314)
Fixed the executable command for pnpm from just `pnpm` to `pnpx` which actually does what the command is expected to be do...

Fixes Issue: #35313
2025-04-28 18:34:23 +00:00
Thomas 2712c44fc4 docs: make MAU usage pages clearer 2025-04-28 18:34:18 +00:00
Alexandre f3f165b7c8 fix(docs): update webhook link in database webhooks guide (#35327)
Updated the link for creating a new Database Webhook in the documentation to point to the correct overview page.
2025-04-28 18:02:25 +00:00
Charis a8a256e21f ci(docs): skip preview ssg for storage section (#35337)
Since skipping preview SSG for realtime has worked for a while now with
no observable negative effect, going to skip for storage as well.
2025-04-28 13:49:11 -04:00
Justin 3f3147002b Update all languages to use ->> operator in JSON query examples (#35266)
- The docs explain "If you want the data returned as `text`, use the `->>` operator."
- Only the SQL example shows this using the `description` field
- All language should use `->>` for the description field
2025-04-27 13:45:55 +00:00
Wen Bo Xie b26e921878 docs: add updating OAuth scopes guide (#35287) 2025-04-25 20:41:04 +00:00
Charis 30b6af4ff3 fix (docs): non-platform integrations page (#35285)
There were two bugs when trying to run the integrations page locally
with NEXT_PUBLIC_IS_PLATFORM=false:

1. The IS_PLATFORM check imported from common was not evaluating
correctly to a boolean. This is because I slapped a 'use client' on the
entire common package last year -_-""" which caused all its imports to
be evaluated to functions when used in server components. I have now
moved the 'use client's down to the submodules that actually need it.

2. When the integrations submenu is empty, the navigation menu errors
out because it expects all navigation items to either have children or
have links. Have updated this to gracefully hide empty headers.
2025-04-25 15:22:06 -04:00
Charis 9846052217 build (docs): lower docs preview build times (#35183)
An experiment in lowering docs preview build times. Build times have gotten quite long again (~12 minutes) because we are generating types on code blocks during prerendering. This wastes compute time building a lot of pages on preview branches that never get viewed, and slows down iteration speed.

Instead, let's only prerender on prod, and build on-demand for preview sites.

Limiting to realtime section for now to monitor the effects of changes.
2025-04-24 15:04:03 -04:00
Charis 9d9fdcd9fc feat (docs): on-demand revalidation for graphql and wrappers (#35177)
Before:

Revalidation was turned off entirely for wrappers pages, and done daily for GraphQL pages.

After:

Revalidation is via tag. There is an /api/revalidate endpoint that is used by GitHub Actions on the federated repos to trigger the revalidation. This decreases the number of unnecessary page generations by Vercel, and gives the maintainers of federated repos more fine-grained control over when to reploy their docs (see the docs deployment playbook for more info).
2025-04-24 14:59:38 -04:00
Copple 9227e83e56 chore: update cli reference doc (#35258) 2025-04-25 02:37:13 +08:00
Francesco Sansalvadore 495cff3df0 remove lw14 promos (#35253)
remove lw14 promo
2025-04-24 10:33:39 -07:00
Anthony Main e94e6fb67b Update database-migrations.mdx (#35244)
Added notes for seeding database
2025-04-24 14:34:54 +00:00
Pamela Chia 661e94b0fe chore: add how to dedicated pooler (#35215) 2025-04-24 13:28:43 +08:00
Monica Khoury 4d9c7f27e0 Docs: clarify geo-routing behavior in read replica guide (#35228) 2025-04-23 19:33:04 +03:00
Monica Khoury ab92a201b4 Fix: broken link in edge function troubleshooting guide (#35220) 2025-04-23 15:44:34 +03:00
Charis 39a12342ea fix (docs): middleware rewrites for reference pages (#35201)
Before:

There was a bug with middleware rewrites for reference pages without
crawler versions (basically all references except the client SDKs).
There was a branch that was not handled (the requesting user agent is a
a bot, but the reference is not a client SDK), so it failed through to
the base case of NextResponse.next(), which 404s as that page does not
exist for a path like /reference/api/v1-deploy-a-function

After:

Fixed the branch. If all of the following are true:

- Is a reference page
- Requesting user agent is a bot
- Reference is not a client SDK

Then it should follow the same path as a non-bot request, because there
is no bot-specific version. That means it should be rewritten to teh
slugless page: /reference/api/v1-deploya-function => /reference/api
2025-04-22 10:14:02 -04:00
Bobbie Soedirgo 246dee70e3 docs: remove references to pgsodium/keys on Vault guide (#35178) 2025-04-22 16:20:30 +08:00
Copple e2e3449ff8 chore: update cli reference doc (#35193) 2025-04-22 12:31:10 +08:00
Akshar Dave 1c615137bb Fixed typo— "cookiesm" (#35179) 2025-04-21 15:46:45 +00:00
PeterandTyler 6a812a04b6 Update docs for new connection strings and disk/compute pages in the dashboard (#35128)
* Update all docs that make references to the database settings to find the connection strings.

Update all docs that references the database settings for the compute and disk page

* run prettier

* run pnpm format instead of prettier directly.

* first run through, fix grammar and reword awkward sentences

* Fix typos and remove unnecessary whitespace

* Apply suggestions from code review

Co-authored-by: Tyler <dshukertjr@gmail.com>

---------

Co-authored-by: Tyler <dshukertjr@gmail.com>
2025-04-21 08:59:43 -05:00
bnlvn 4f2c9e5c45 docs:Clarify behavior of email confirmation during email updates (#35150)
Updated the email update note in the docs to explain that confirmation emails are still sent due to the Secure Email Change setting. Added a direct link to the relevant dashboard setting to help users better understand and manage the behavior.
2025-04-21 13:02:41 +00:00
Han Qiao 9fb5c4ad14 chore: clarify how previews are based on persistent branch (#35137) 2025-04-21 20:59:51 +08:00
Kevin Grüneberg 173cc56e71 feat: expose project perms to team plan (#35007) 2025-04-21 10:05:54 +08:00
Charis 2f80b9b3b6 fix: jwt generator (#34908)
The old JWT generator code provided the anon and authenticated claims as strings. The format of this string is different from the format determined by KJUR if an object is provided (I'm guessing probably a whitespace or quote character thing, but I didn't dive down this rabbit hole.) This leads to incompatibilities when the token is used.

To prevent this, the tokens are now defined as objects and KJUR's own serialization is used.
2025-04-18 12:30:07 -04:00
Charis be99898efe docs: move restoring backup section (#35109)
Before:

Instructions for restoring a backup locally were buried inside the
Upgrading guide.

After:

Instructions for restoring a backup locally are on their own page in the
Local Development section. This page is linked from the Upgrading guide
because it is useful if a paused project has exceeded its restoring time
limit.
2025-04-18 12:30:33 +00:00
hallidayoandCharis Lam fbc48bf8f2 docs: ionic vue update (#35103)
* initial app without storage

* code tab typo

* format

---------

Co-authored-by: Charis Lam <26616127+charislam@users.noreply.github.com>
2025-04-17 22:53:28 +00:00
bnlvn 68fde6cf84 docs(auth): clarify mapping of user metadata in updateUser example (#35047)
Adds a note explaining that the `data` field maps to `raw_user_meta_data` in the database,
and is returned as `user_metadata` when calling `getUser()`.
2025-04-17 00:16:35 +00:00
Kevin Grüneberg 679714fa75 feat: merged billing & invoices / billing tab in new org nav (#35008)
- Merge billing & invoices page
- Moved credits under payment method management to keep it closer to invoices
- Reduced invoice list to 5 by default
- Added "Billing" navigation item for new org nav
- Rewrote invoices links to use new billing invoices section
- Permanent redirect for organization invoices page
2025-04-16 19:19:39 +08:00
Cemal Kılıç fe87cf1f74 chore: add Cemal to humans.txt (#35062) 2025-04-16 10:32:59 +00:00