Commit Graph

17 Commits

Author SHA1 Message Date
Chris Chinchilla
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
Katerina Skroumpelou
a7563e9fe6 docs(examples): use latest v2 of supabase-js and remove lock files (#44704)
* Use latest 2.x version of `@supabase/supabase-js` in all examples
* Use `latest` version of `@supabase/ssr` in all examples
* Remove lock files from examples
* Add examples lock files in .gitignore

The rationale is:
- Lock files are not actively maintained/updated (or the versions in the
package.json files for that matter)
- They pin an arbitrary version (from the end-user perspective)
- Removes the need to manually update the versions and reinstall
- Consistency

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

## Summary by CodeRabbit

## Release Notes

* **Chores**
* Broadened Supabase SDK dependency version constraints across example
projects for greater flexibility with compatible updates
  * Updated some SSR package dependencies to track latest releases
* Added gitignore rules for dependency lock files in example directories

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-04-14 09:24:46 +03: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
Mayur
123dd5b426 docs: update Cloudflare worker itty router link example (#29904)
fix: 404 link for the cloudflare worker itty router
2024-10-17 13:00:13 +02:00
dependabot[bot]
6ea576a316 chore(deps-dev): bump wrangler from 2.0.23 to 2.20.1 in /examples/with-cloudflare-workers (#17082)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-25 14:45:39 +08:00
Mingwei Zhang
2c9451fb33 Fix supabase-js install script for workers example
Change from `@supabase-supabase-js` to `@supabase/supabase-js`
2023-04-17 16:18:41 -07:00
dependabot[bot]
53b9bf35a9 chore(deps): bump undici and miniflare
Bumps [undici](https://github.com/nodejs/undici) and [miniflare](https://github.com/cloudflare/miniflare/tree/HEAD/packages/miniflare). These dependencies needed to be updated together.

Updates `undici` from 5.5.1 to 5.20.0
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v5.5.1...v5.20.0)

Updates `miniflare` from 2.6.0 to 2.13.0
- [Release notes](https://github.com/cloudflare/miniflare/releases)
- [Changelog](https://github.com/cloudflare/miniflare/blob/master/docs/CHANGELOG.md)
- [Commits](https://github.com/cloudflare/miniflare/commits/v2.13.0/packages/miniflare)

---
updated-dependencies:
- dependency-name: undici
  dependency-type: indirect
- dependency-name: miniflare
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-12 08:53:26 +00:00
thorwebdev
d4ee3473c8 chore: update examples supabase-js v2 2022-10-19 23:18:59 +08:00
dannykng
9370244537 Revert "chore: remove examples"
This reverts commit 05b96de142.
2022-09-16 10:13:18 -07:00
Isaiah Hamilton
05b96de142 chore: remove examples 2022-09-08 22:55:22 -04:00
Copple
49503c243e Update examples/with-cloudflare-workers/README.md 2022-02-23 09:21:33 +01:00
Copple
1148b6b3f5 Update examples/with-cloudflare-workers/README.md 2022-02-23 09:21:27 +01:00
Siddhant
234466178d fix: Update README 2022-02-21 16:57:13 +01:00
Siddhant
d88e1183e7 fix: generic table name 2022-02-21 16:45:55 +01:00
Siddhant
c3ea9100be fix: with-cloudflare-workers example 2022-02-21 16:40:01 +01:00
kiwicopple
cd9958319c Apply Prettier changes 2021-05-22 02:30:29 +00:00
Paul Copplestone
00b0afb781 example: with-cloudflare-workers 2021-02-16 17:07:10 +08:00