Files
supabase/apps/kb/.env.example
Anthony Lio ff12dda7ea refactor(kb): read og image function url from env (#52182)
## Problem

- #52096 adds the kb og image with the function url of the misc project
written in `Layout.astro`

## Solution

- replaces the url in `apps/kb/src/layouts/Layout.astro` with `MISC_URL`
- adds `MISC_URL` to `apps/kb/.env.example`

<!--
## Preview links

If relevant, include links to changed pages for easy review access.

Copy the preview base URL from the Vercel bot comment on this PR. Use
the following table as an example template.

| Site | Live | Preview | Search for |
| -------------- |
-------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------
| ----------------------------- |
| WWW | [/blog/your-post](https://supabase.com/blog/your-post) |
[/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post)
| unique phrase from the change |
| Docs |
[/docs/guides/your-page](https://supabase.com/docs/guides/your-page) |
[/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page)
| unique phrase from the change |
| Studio | [/dashboard](https://supabase.com/dashboard) |
[/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard)
| unique phrase from the change |
| Design system | [/design-system](https://supabase.com/design-system) |
[/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system)
| unique phrase from the change |
| UI library | [/library](https://supabase.com/library) |
[/library](https://ui-library-git-branch-name-supabase.vercel.app/library)
| unique phrase from the change |
| Knowledge base |
[/kb/guides/your-page](https://supabase.com/kb/guides/your-page) |
[/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page)
| unique phrase from the change |
-->

<!-- ## Additional context

Optionally add any other context or screenshots.

-->

## Review instructions

Provide a clear numbered procedure that the PR reviewer can walk
through.

1. visit /kb
2. inspect og image

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-10-29 20:11:44 +02:00

31 lines
1.3 KiB
Bash

# GitHub auth for scripts/federated-content/fetch-federated-content.ts (pulls
# troubleshooting content from the private supabase/troubleshooting repo).
# Same credentials as apps/docs — that GitHub App must also be granted
# access to supabase/troubleshooting.
#
# Preferred: a GitHub App installation. Set all three or none.
KB_GITHUB_APP_ID=
KB_GITHUB_APP_INSTALLATION_ID=
KB_GITHUB_APP_PRIVATE_KEY=
# Fallback for local dev if the App isn't configured: a personal access
# token, e.g. `export GH_TOKEN=$(gh auth token)`.
GH_TOKEN=
# Supabase project backing troubleshooting_entries (same project apps/www and
# apps/studio use — supabase/config.toml's `[remotes.prod]`). Everything in kb
# uses the service role key: the Astro build reads with it, the sync scripts
# also write, and api/search/index.ts queries kb_search at runtime. Never
# expose it to client code.
SUPABASE_URL=
SUPABASE_SERVICE_ROLE_KEY=
# Dev only: where the search dialog calls api/search. It's a Vercel function, which `astro dev`
# doesn't serve, so point this at a deployed instance, e.g. https://supabase.com/kb/api/search.
# Ignored in production and preview builds, which use the site's own /kb/api/search.
PUBLIC_KB_SEARCH_URL=
# Supabase project that serves the og-images edge function
# when not set: pages use the default OG image
MISC_URL=