Files
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
..

Self-Host Maps on Supabase Storage with Protomaps

Create a static PMTiles Map file

Follow the instructions in the Protomaps docs to extract a my_area.pmtiles file.

Upload to Supabase Storage

  1. Create a new private bucket called maps-private.
  2. Upload your my_area.pmtiles file there.

Take note of the file size limits depending on your project tier.

Proxy through Edge Functions

You can use Supabase Edge Functions to set up fine grained access controls. Use the /supabase/functions/maps-private/index.ts.

You can also use Edge Functions with Supabase Auth JWTs to only render Maps for authenticated users for example. Read the docs.

  1. Deploy the function to your Supabase project: supabase functions deploy maps-private --no-verify-jwt.
  2. Update the protomaps.url in the index.html file.

Start simple web server

You can use python to serve the index.html file:

python3 -m http.server

Now navigate to http://localhost:8000/ to see your beauiful Map!