Commit Graph
17 Commits
Author SHA1 Message Date
Stojan DimitrovskiandChris Chinchilla 93ba2a312c docs: indicate publishable key instead of anon in many examples (#37411)
* docs: indicate publishable key instead of anon in many examples

* replace your-anon-key to string indicating publishable or anon

* fix your_...

* apply suggestion from @ChrisChinchilla

Co-authored-by: Chris Chinchilla <chris@chrischinchilla.com>

* Update keys in code examples

* Prettier fix

* Update apps/docs/content/guides/functions/schedule-functions.mdx

---------

Co-authored-by: Chris Chinchilla <chris@chrischinchilla.com>
2025-08-18 13:47:48 +02:00
Chris Chinchilla 7f50ee9dd2 docs: Improve the steps for NextJS quickstart (#37929)
* Improve the steps for NextJS quickstart

* Update apps/docs/content/guides/getting-started/quickstarts/nextjs.mdx
2025-08-14 15:43:06 +02:00
Charis 258bc37919 docs: add type hints (#34678) 2025-04-08 13:25:46 -04:00
Charis 311232b3e1 feat(docs): ts hover annotations on code blocks (#34327) 2025-03-21 15:48:32 -04:00
Charis 2709fa4a3e feat: pre-compile-time partials (#34028)
Partials are currently defined via MDX includes. This PR switches to pre-compile-time partials, which have a new syntax:

```
<$Partial path="path/to/file.mdx" />
```

## Rationale

This produces two improvements:

1. Partial substitution can occur in pipelines that don't use MDX compilation. For example, we can now do partial substitution before building the search index, so partial content will also be indexed.
2. After the App Router migration, the MDXProviders should've been deprecated, but were kept around for the sole reason of making partials work, and leading to us shipping unnecessary client-side code. We get a minor decrease in overall client bundle size (5.74 MB to 5.6 MB) by getting rid of the Providers.

## Breaking changes

Besides the change to partial syntax, the arguments are also less powerful than before because we are doing string substitution and don't have the full power of JS. Defining string variables is still possible (documented in the Contributing guide), and since that's all we actually do in practice, this shouldn't be too cumbersome. There is always the escape hatch of making a custom component for more complex content reuse cases.
2025-03-18 10:37:39 -04:00
Charis 80ee4c9ab0 fix: examples (#33276) 2025-02-03 14:14:08 -05:00
Kamil Ogórek a882994565 docs: Update next.js and sveltekit quick start guides (#30457) 2024-11-13 15:49:42 +01:00
Terry SuttonandCharis Lam bb0306061d Chore/update to next 15 (#30075)
* Update Next.js docs for v15

* More awaiting

* remove async for pages router

* fix for dashboard connection guide

---------

Co-authored-by: Charis Lam <26616127+charislam@users.noreply.github.com>
2024-10-24 12:56:20 -02:30
hamzah syed e9efd32f03 removed type CookieOptions (#29207) 2024-09-10 20:31:16 +00:00
Charis b0313a262e fix(docs): update nextjs quickstart (#28404)
Update quick start to use new SSR API.
2024-08-06 14:15:38 -04:00
Charis 985ed13456 docs(quickstarts): add rls policy step (#28196)
Quick starts are missing the step to create an RLS policy, which can be
confusing if you choose to create the table from the Table Editor, and
subsequently can't select from it.
2024-07-31 14:58:37 +00:00
Dhairya Shah 85d12f090e bug: fixed indentation issue in docs (#27112)
fixed indentation issue
2024-06-10 23:50:24 +00:00
Charis 78c93f2d52 fix: change some docs links to make more sense (#22442) 2024-04-04 07:00:31 -04:00
Michael Obubelebra AmachreeandCharis Lam 6e7e0426f3 Refactored quickstart guides for Next.js, React, and SvelteKit (#21517) (#21607)
* Refactored quickstart guides for Next.js, React, and SvelteKit (#21517)

* change suggested links

---------

Co-authored-by: Charis Lam <26616127+charislam@users.noreply.github.com>
2024-03-05 20:02:32 +00:00
hallidayoandChris Gwilliams e9763360a1 docs: nextjs missing createClient example code (#21532)
added createClient function example

Co-authored-by: Chris Gwilliams <517923+encima@users.noreply.github.com>
2024-03-05 00:49:38 -05:00
Ari Israel a3126fa4cc docs: update Next.js Quickstart example env file name (#21351)
Update nextjs.mdx

The example env file created with `npx create-next-app -e with-supabase`  is called .env.example, not .env.example.local. This updates the getting started doc to reflect that.
2024-02-21 20:45:45 +00:00
Charis b0b8b6b6e3 refactor: finish moving mdx to content directory (#21321) 2024-02-16 13:43:02 -05:00