Commit Graph
13 Commits
Author SHA1 Message Date
Kody JacksonandClaude Sonnet 5.5 f96a6daba2 chore(kb): redirect /kb/sitemap.xml to /kb/sitemap-index.xml (#53099)
## What

Adds a permanent redirect in `apps/kb/vercel.json` from
`/kb/sitemap.xml` to `/kb/sitemap-index.xml`.

## Why

Astro's sitemap integration emits `sitemap-index.xml`, but crawlers and
tools commonly look for `sitemap.xml` at a predictable location, which
currently 404s.

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-30 08:05:08 -06:00
Taryn King 2259562227 chore: add redirects for consolidated kb guides on functions limits (#53778)
Add redirects for the following two kb guides that were deleted:
`/edge-function-wall-clock-time-limit-reached-Nk38bW`
`/edge-function-cpu-limits`

These deleted guides redirect to `/edge-function-limits` in the kb.
Content from the deleted guides were consolidated into this new guide.

## Review instructions

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

1. For example, `Open the live and preview links side-by-side.`
2. For example, `See the issue is fixed.`

## 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-11-23 12:32:40 -06:00
Jeremias Menichelli 885124771f chore: Restore hash on kb pages, reverse redirects to permanent paths (#52788)
## Problem

In our initial launch of `kb`, a script mistakenly removed the hash in
the end of troubleshooting guides. This pattern removal was wrong, since
it didn't delete several non-matching hashes, plus created discrepancies
between our troubleshooting database table.

## Solution

Because we launched already, we need to make sure people with the old
hash-less URLs can still access the content by manually listing these
mistakes in redirects at kb level. We will remove the pattern matching
from docs redirects and special redirects since they are not needed
anymore thanks to this.

From now on, URLs hashes will stay as the default URL behavior.

Adapting the project to hash-less URLs would be more complicated and
dangerous:
 - We would need to manually run migrations on database tables
- Update the HEX AI script generating these hashes to actually stop or
follow a stricter pattern
- We would still run onto a potential issue by the reg ex match failing
for certain pages

<!--
## 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

Test docs redirects working correctly:
- Go to
https://docs-git-jeremiasmenichelli-docs-1577-fix-redir-24a637-supabase.vercel.app/docs/guides/troubleshooting/42501--permission-denied-for-table-httprequestqueue-KnozmQ
it should lead to
https://docs-git-jeremiasmenichelli-docs-1577-fix-redir-24a637-supabase.vercel.app/kb/troubleshooting/42501--permission-denied-for-table-httprequestqueue-KnozmQ
 - This would lead to a 404 because each preview has different base URL.
 
_Sadly, cross-site redirects cannot be tested in preview environments._

You can test kb redirects:
- Go to a guide without its hash, for example
https://kb-git-jeremiasmenichelli-docs-1577-fix-redirec-963704-supabase.vercel.app/kb/troubleshooting/42501--permission-denied-for-table-httprequestqueue,
it should lead to
https://kb-git-jeremiasmenichelli-docs-1577-fix-redirec-963704-supabase.vercel.app/kb/troubleshooting/42501--permission-denied-for-table-httprequestqueue-KnozmQ

 
 

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] 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-11-04 13:51:05 +01:00
Kody JacksonandClaude Haiku 5.5 17c2985e16 fix(kb) - include faqs in sitemap.md (#52559)
## Problem

2 gaps:
- Missing FAQs in the sitemap.md
- Experiment to redirect requests to the homepage to sitemap.md

## Preview links

### FAQ addition

Now includes faqs in
https://kb-git-kody-devrel-813-sitemapmd-tweaks-supabase.vercel.app/kb/markdown/sitemap.md
<img width="1338" height="669" alt="image"
src="https://github.com/user-attachments/assets/fb5174f7-23f4-4187-8fed-1fb7ca9fa216"
/>

### markdown behavior

```
curl "https://kb-git-kody-devrel-813-sitemapmd-tweaks-supabase.vercel.app/kb" \
-H "Accept: text/markdown"
```

```
# Supabase Knowledge Base

In-depth guides, tutorials, troubleshooting, and explainers for best practices for Supabase

## Topics

- [Migration](https://supabase.com/kb/topics/migration.md)
- [Comparison](https://supabase.com/kb/topics/comparison.md)
- [Rundowns](https://supabase.com/kb/topics/rundowns.md)
- [Troubleshooting](https://supabase.com/kb/topics/troubleshooting.md)
- [Tutorials](https://supabase.com/kb/topics/tutorials.md)
- [Storage](https://supabase.com/kb/topics/storage.md)
- [Auth](https://supabase.com/kb/topics/auth.md)
- [Database](https://supabase.com/kb/topics/database.md)
- [Edge Functions](https://supabase.com/kb/topics/edge-functions.md)
- [Queues](https://supabase.com/kb/topics/queues.md)
....
```

---------

Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com>
2026-10-30 12:12:16 -05:00
Kody JacksonandClaude Haiku 5.5 2ea3566dec feat(kb) - Add in structured FAQ generation + FAQ reference (#51795)
## Problem

FAQs will be an important content type within the new KB... but 3
problems typically emerge for this content type:

1. Reuse.
2. Structure, specifically related to formatting into machine favorable
[FAQ structured data](https://schema.org/FAQPage). It's really hard to
get multiple contributors structuring these so they're easily converted
into specific component, so separating into individual, structured files
is the best approach here.
3. Tracking... b/c it's hard to know which questions specifically get
referenced on larger pages with multiple Q's.

## Solution

Adds in a new `faq` content collection that has Individual .mdx entries
per question, which are then turned into standalone pages with
structured data.

I'd prefer this structure as opposed to others b/c it addresses the
issues I mentioned above (reuse, structure, tracking).

In the future, this also sets us up to use these in various places as an
`FAQ` component or something to help re-use question / answers on
multiple pages.

## Preview links


https://kb-git-kody-devrel-717-begin-faq-structure-supabase.vercel.app/kb/topics/faqs


https://kb-git-kody-devrel-717-begin-faq-structure-supabase.vercel.app/kb/faqs/auth/supabase-auth-required-for-supabase

[Schema
validation](https://validator.schema.org/#url=https%3A%2F%2Fkb-git-kody-devrel-717-begin-faq-structure-supabase.vercel.app%2Fkb%2Ffaqs%2Fauth%2Fsupabase-auth-required-for-supabase)

<img width="1427" height="794" alt="image"
src="https://github.com/user-attachments/assets/cfb268da-f129-4c89-8ac5-a03c8c3d20fb"
/>

---------

Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com>
2026-10-22 08:57:08 -05:00
Jeremias Menichelli 497cbecfd3 feat: Generate sitemap.md file in kb, fix markdown slug reconciliation, update llms file (#52076)
## Problem

We need a general entry level file for kb discovery for agents.

## Solution

- Generate a sitemap.md file with all relevant links listed within the
project
- Set redirects so supabase.com/kb/sitemap.md and supabase.com/kb.md
lead to that file
 - Add link to the file in the llms.txt file
 - Fix some slug reconciliation issues within troubleshooting suffixes
 - Move scripts to .ts to follow architectural conventions
 
<!--
## 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

1. Make sure troubleshooting markdown files work correctly, go to the
preview site of kb in this PR, open a troubleshooting guide with a
suffix, add .md at the end, it should return markdown version of the
page
2. Go to the preview site of kb in this PR, add /sitemap.md, a markdown
file with a list of all topics, guides and troubleshooting articles
should appear

(sadly www redirects cannot be tested on preview environments)

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] 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-21 15:40:37 +02:00
Kody Jackson 8b3c47006e chore(Kb) - sitemap fix (#52044)
## Problem

KB sitemap referred to slashed entries, even though our convention is
unslashed entries.
(discovered by @nrichers in #52017)

## Solution

Configure the Astro project to [never support trailing
slashes](https://docs.astro.build/en/reference/configuration-reference/#trailingslash)
(fixes sitemap) + the [Vercel
config](https://vercel.com/docs/project-configuration/vercel-json#trailingslash)
to always redirect trailing slashes to their unslashed entities.

The vercel config here might be overkill... but doesn't hurt imo.

There's a weird bug in the Astro sitemap extension where the root entry
stays slashed `/kb/`, but everything else is now correct.

## Preview links


[sitemap](https://kb-git-kb-sitemap-fix-supabase.vercel.app/kb/sitemap-0.xml)

| slashed | unslashed |
| [homepage]() | [homepage]() |
|
[troubleshooting](https://kb-git-kb-sitemap-fix-supabase.vercel.app/kb/troubleshooting/error-invalid-byte-sequence-for-encoding-utf8-0x00-when-accessing-triggers-or-webhooks)
|
[troubleshooting](https://kb-git-kb-sitemap-fix-supabase.vercel.app/kb/troubleshooting/error-invalid-byte-sequence-for-encoding-utf8-0x00-when-accessing-triggers-or-webhooks/)
|
|
[guides](https://kb-git-kb-sitemap-fix-supabase.vercel.app/kb/guides/migrate-from-firebase-storage)
|
[guides](https://kb-git-kb-sitemap-fix-supabase.vercel.app/kb/guides/migrate-from-firebase-storage/)
|
2026-10-21 08:02:49 -05:00
Kody JacksonandClaude Haiku 5.5 ebfe057c9a feat(kb) - add in content negotiation support (#51801)
## Problem

KB doesn't currently support content negotiation via `-H "Accept:
text/markdown`, which helps agents dramatically cut down on the tokens
they use.

## Solution

Adds in Vercel rewrites + headers to support this functionality.

## Output

### Live

[Live](https://supabase.com/kb/guides/sample-guide)

```
curl "https://supabase.com/kb/guides/sample-guide" \
-H "Accept: text/markdown"
```
```
<!DOCTYPE html><html lang="en" data-astro-cid-ju4pidww><head><meta charset="utf-8"><meta name="viewport" content="width=device-width"><meta name="robots" content="noindex, nofollow"><meta name="description" content="A lorem ipsum sample guide exercising every base Markdown element supported by the guide layout."><script>
			// Set data-theme on <html> before first paint, so the page doesn't flash
			// the wrong theme while this loads. Defaults to dark (no system-preference
			// check — the toggle in components/ThemeToggle.tsx is light/dark only).
			;(function () {
				try {

```

### Preview


[Preview](https://kb-git-kody-devrel-718-content-negotiation-supabase.vercel.app/kb/guides/sample-guide)

```
curl "https://kb-git-kody-devrel-718-content-negotiation-supabase.vercel.app/kb/guides/sample-guide" \
-H "Accept: text/markdown"
```

```
# Markdown elements sample

A lorem ipsum sample guide exercising every base Markdown element supported by the guide layout.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
```

---------

Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com>
2026-10-15 12:43:48 -05:00
Jeremias Menichelli 05396e3378 [DOCS-1422] feat: create GitHub workflow or script to fetch troubleshooting (#51365)
## Problem

Currently troubleshooting guides merged in a private repository trigger
an action to open a PR against our Docs project.

From now on, we want the `kb` to host the troubleshooting guides and
take care of all the Github discussion process while improving some of
its parts.

## Solution

With this PR now:
- All files and scripts related to handling the actions and processes
for handling troubleshooting entries and GitHub Discussion creation on
Docs are deleted.
- A new workflow to sync troubleshooting guides with Supabase's
`troubleshooting_entries` table was created with some improvements.
- Now troubleshooting entries are fetched at pre-build in `kb` project
directory.
- When troubleshooting guides are created a new script detects this,
creates the GitHub discussion for it, extracts the URL, and pushes the
row to a db table at `push`.
- When troubleshooting guides are updated, a checksum holding its title
and body is compared, and the GitHub discussion content gets updated.
 
_Note: all troubleshooting content hasn't been migrated for **kb**, so
content not ready is filtered and not placed in the directory. This
allow us to progressively migrate all pages without breaking the build._

<!--
## 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

For the database workflow, sadly, we will have to wait and monitor, but
the fetching mechanism can be tested.

1. Go to the preview link for `kb`
2. Go to Topics > Troubleshooting
3. A new guide should be visible "Partial migrations and schema
inconsistencies from embedded transactions", click on its link
4. A page showing the guide's content should render

<img width="1022" height="810" alt="Screenshot 2026-10-07 at 13 19 17"
src="https://github.com/user-attachments/assets/cbd25a60-8721-4329-907f-f92de894c217"
/>



## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] 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-13 14:30:58 -03:00
Jeremias Menichelli fd863ee15d feat(kb): Expose markdown alternatives for articles and topics pages (#50135) 2026-09-10 12:04:42 +00:00
Jeremias Menichelli 343dee6bac chore: Add rewrites to kb vercel config (#49900) 2026-09-02 15:01:34 +02:00
Jeremias Menichelli dd57c1476f chore: Add redirects to www for kb project (#49780) 2026-09-02 12:26:38 +02:00
Jeremias Menichelli 143f141e0f feat: initial kb scaffolding (#49601) 2026-08-31 14:55:04 +00:00