Commit Graph
6 Commits
Author SHA1 Message Date
9c81711af7 docs: fix typo in use-realtime prompt (corrolate -> correlate) (#53409)
Fixes a one-word typo in `examples/prompts/use-realtime.md`: `corrolate`
-> `correlate`.

No other changes in this PR.

Co-authored-by: hallidayo <22655069+Hallidayo@users.noreply.github.com>
Co-authored-by: Nik Richers <nrichers@gmail.com>
2026-11-22 22:09:00 +00:00
Chandrasekhar Chennuri 5d74fe0dff fix(realtime-prompt): use WITH CHECK for INSERT policy (#51212)
## Description

Fixes #51206

The Realtime prompt example currently uses `USING` for an `INSERT` RLS
policy.

PostgreSQL requires `WITH CHECK` for validating rows being inserted. The
current example therefore cannot be created as written.

This change replaces `USING` with `WITH CHECK` in the
`room_members_can_write` policy.

## Changes

- Changed `USING` to `WITH CHECK` for the `INSERT` RLS policy.
- No other documentation or behavior was changed.

## Verification

- Verified the affected example against PostgreSQL RLS policy syntax.
- Confirmed the change is limited to the affected `INSERT` policy.

Closes #51206
2026-10-30 18:35:46 -07:00
d8bd6b047c docs: Examples Key changes (#45170)
## I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
file.

YES

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Documentation**
* Updated examples and guides to use Supabase publishable (client) keys
instead of anon keys for client-side usage across frameworks and
platforms.
* Renamed environment variable examples and .env templates to reflect
publishable key naming.
* Adjusted sample requests and client-init examples to send/use the
publishable key via the apikey header where applicable.
* Updated references from service_role to secret for server-side
credential guidance.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: fadymak <fady@fadymak.com>
2026-05-04 12:58:16 +02:00
Ivan Vasilov d07e78a616 chore: Run prettier on examples folder (#43851)
This PR runs `prettier` on the `examples` folder.

Depends on https://github.com/supabase/supabase/pull/43849.
2026-03-18 10:51:10 +01:00
Steven Eubank 82f79e5af6 Fix logic conflicts (#40362)
When applying these rules to my personal project. My cursor bug bot detected logical gaps in these 2 prompts.
2026-01-27 02:42:41 +00:00
Filipe CabaçoandIvan Vasilov 7fb163daa9 realtime: add ai rules (#38220)
---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2025-08-28 13:39:50 +01:00