Commit Graph

66 Commits

Author SHA1 Message Date
Chris Chinchilla
e6e24aadad docs: Update user management docs for next JS (#37664)
* Draft

* Update text for guide

* Update text for guide

* Update code for newer next js versions

* Final small change

* Update apps/docs/content/_partials/project_setup.mdx

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

* Changes from review

* Use project name in tutorial text

* Fix up inclusion

* Fix inclusion

* Prettier

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2025-08-07 08:45:39 +00:00
Chris Chinchilla
74a1cd8dfe docs: Update User management quickstart to Svelte 5 (#37646)
* General updates and switch to Svelte 5

* Update code example to Svelte 5

* Update some examples to use codesamples component

* Add Svelte to codesample component

* Final code updates

* Add more CodeSample components
2025-08-05 13:40:50 +00:00
Chris Chinchilla
0e2bd38457 Update Angular tutorial to use v20 (#37380)
* Add Chris Ward to humans

Signed-off-by: Chris Chinchilla <christopher.ward@supabase.io>

* Update Angular tutorial for Angular 20

* Update Angular doc

* Revert "Add Chris Ward to humans"

This reverts commit c45ea9d213.

* Update tsconfig

* Add note about CLI defaults

* Prettier fix

---------

Signed-off-by: Chris Chinchilla <christopher.ward@supabase.io>
Co-authored-by: Chris Chinchilla <christopher.ward@supabase.io>
2025-07-28 16:27:50 +02:00
Connor Molz
feb5a57b32 Update with-ionic-react.mdx to run in current verison (#36833)
* Update with-ionic-react.mdx to run in current verison

* fix prettier test failing
2025-07-02 16:32:55 +00:00
Max Holmberg
9016b84657 Remove + character from code blocks (#35414) 2025-05-02 15:44:56 +00:00
hallidayo
fbc48bf8f2 docs: ionic vue update (#35103)
* initial app without storage

* code tab typo

* format

---------

Co-authored-by: Charis Lam <26616127+charislam@users.noreply.github.com>
2025-04-17 22:53:28 +00:00
Charis
258bc37919 docs: add type hints (#34678) 2025-04-08 13:25:46 -04:00
Yuko Murayama
43c156cfd7 removed typescript specific code from javascript code snippet (#34814) 2025-04-08 14:45:15 +00:00
Charis
c4afb75461 fix: code blocks (#34427) 2025-03-31 12:15:22 -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
Marcin Wozniak
ae94176e25 Update with-expo-react-native.mdx (#34206) 2025-03-17 17:37:24 +00:00
Charis
a820c56ed0 chore: docs linting (#33574) 2025-02-21 14:13:00 -05:00
Fabian Hagen
54326d55b8 Update with-vue-3.mdx to match import and actual code (#33103)
Update with-vue-3.mdx

Imported `watch` from Vue but used `watchEffect`.

Changed the import to match the actual code.
2025-02-20 16:45:50 +00:00
Yudai Suzuki
f203d6cbd7 docs: update tutorial with swift (#33248) 2025-02-04 23:40:07 +00:00
Charis
2d55512553 chore: activate spelling and admonitions lints for docs (#33292) 2025-02-04 13:18:31 -05:00
hallidayo
000457474a docs: solidjs supabaseClient (#30992)
update solid supabaseClient example
2024-12-09 18:11:56 +00:00
Charis
d9a1a615f5 ci: linter v2 (#30480)
PR to start introducing Linter V2!

Primary improvements from this linter:

Better parsing of MDX (fewer false positives)
More flexibility
And suggested autofixes! (see auto-generated PR comment below for how that works)
Turning this on for only a small portion of the repo at first to avoid an avalanche of alerts, will slowly expand from there.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-11-22 15:22:05 -05:00
Alexander
1adfb951b1 fix row level security docs url in expo tutorial (#30367)
fix row level security docs url
2024-11-07 20:51:09 +00:00
Charis
652c4288e6 chore(docs): update examples for nextjs 15 breaking changes
cookies() is now asynchronous
2024-10-30 10:13:57 -04:00
Terry Sutton
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
Artur Zakirov
be6bf76ffa Fix a typo in utils/supabase/server.js (#29781)
It seems that `utils/supabase/server.js` is not a valid JS code.
Specifically it has non-null assertion operator. Remove the operator to
make the code valid.
2024-10-09 12:05:00 +02:00
Vincent Fretin
ce724e91bb Fix wrong style width value in solid tutorial (#29688)
* Fix wrong style width value in solid tutorial

* update the line also in the code

* sync with the doc
2024-10-04 14:26:40 +00:00
Michael Sumner
78e10c8989 Update with-react.mdx (#29546)
Fix syntax error
2024-10-02 15:34:58 +00:00
Jan Tennert
0381676f91 Add Kotlin v3 docs (#29531)
* Update docs

* add v3 docs

* add note about kotlin targets

* Apply suggestions from code review

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

* Update apps/docs/spec/supabase_kt_v3.yml

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-10-01 23:57:05 +00:00
Charis
c2fe11850d feat: embed code samples from github (#29519)
Add the ability to embed code samples from GitHub into tutorials, so we can have a single source of truth for the source code.

Introduces the <$CodeSample /> syntax, which is a special syntax and not a real React component (see the directives/README.md for why on earth I did it this way -- in this specific case, CodeHike adjusts the MDX syntax tree before it gets compiled, and we need to adjust it ourselves before CodeHike sees it, so we need to get down to the level of manipulating the AST in order to make this work with CodeHike).

Adjusted one of the example tutorials to use this new feature as a test.
2024-09-26 15:54:57 -04:00
Charis
90ee3a7ec1 fix(docs): remove typing from javascript example (#29112) 2024-09-05 11:10:50 -04:00
Steve Xu
a164247bc8 fix(docs): Update angular tutorial (#28587) 2024-09-04 11:30:06 +00:00
shinriyo
61085c79c2 Update with-svelte.mdx (#19347)
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-08-15 08:10:56 +00:00
Maysam Torabi
e8c3b92c2a missing code fix (#28223) 2024-08-15 07:26:08 +00:00
Felipe Peter
6e795f54ec Add usePathUrlStrategy to web setup instructions (#28120)
* Add `usePathUrlStrategy` to web setup instructions

Supabase redirects do not work with Flutter's default URL strategy.

* fix prettier issue
2024-08-15 05:48:02 +00:00
Guilherme Souza
c73dd369ad docs(swift): remove usage of deprecated code from getting started guide (#28639)
docs(swift): remova usage of deprecated code from getting started guide
2024-08-14 14:13:47 -03:00
Maysam Torabi
9e3ca8499d Fixing spelling error (#28220) 2024-07-31 01:17:08 +00:00
ad-angelo
d1ac838328 Docs : Missing part of code in Tutorial "Build a User Management App with Flutter" (#28070)
Fix : Add missing Avatar widget and logic to update the avatar_url to the Account page
2024-07-22 16:59:36 +00:00
Oliver Hogan
1a96462aa9 Fix Grammar/File Naming issus in "Update with-nextjs.mdx" (#27970)
* Fix Grammar in "Update with-nextjs.mdx"

* Fix misnaming of js/ts in "Update with-nextjs.mdx"
2024-07-14 12:33:25 +02:00
Hichem Dahi
e474541f41 fix(docs): Replace watch with watchEffect. Add additional details to clarify Account.vue file. (#27843)
Update with-vue-3.mdx

Replace watch with watchEffect. Add additional details to clarify the explanation of the Account.vue file.
2024-07-12 18:38:19 +00:00
Andrew Smith
b79a138055 fix(docs): update ssr guides and examples for nextjs and svelte (#27834)
[Summary by Charis]
Update SSR guides and examples for Next.js and Svelte:
- New `@supabase/ssr@0.4.0` API
- Misc. Svelte fixes
2024-07-08 15:06:59 -04:00
Andrew Smith
8124dcae54 update sveltekit guides with the latest ssr setup (#27641)
* update sveltekit guides with the latest ssr setup

* update style formatting
2024-07-01 19:39:43 -04:00
Arnold Rozon
056af94ed8 docs: Remove extra await from Swift sample (#27511)
Update with-swift.mdx

Removed extra await in `AppView` example
2024-06-25 20:41:55 +00:00
Tyler Pfaff
33c7e812c4 Fix errors being swallowed in account_page.dart and login_page.dart fixes #27104 (#27143)
* Refactor login_page with a _showSnackBar function

* Add an onError block to onAuthStateChange

Errors get swallowed without this error handler, I noticed it when I had requested too many magic link emails, there was no feedback in the ui, nor in the logs in the console.

* Fix SnackBars not being displayed and add a _showSnackBar function

* Fix code samples for login_page.dart and account_page.dart to reflect fixes in #27104

* Fix isError not being passed for an Unexpected Error in login_page

* Update flutter user management example to a more modern code

* Update the guide to match the new content

* run formatter

* got rid of excess code and minor format fix

---------

Co-authored-by: dshukertjr <dshukertjr@gmail.com>
2024-06-14 09:19:10 +00:00
Áom | Siriwat J
5d2920d028 [Fix #27119] Update PKCE example code on with-nextjs example (#27184)
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-06-12 15:55:59 +00:00
Ivan Vlatković
1b6a32458f [docs] SvelteKit tutorial - do not throw redirect (#26396)
do not throw redirect

`throw redirect` is not used in SvelteKit v4 it's just `throw`

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-06-04 03:38:03 +00:00
Jacint Varga
07bfcfbc3c docs: updated with-expo-react-native.mdx (#26705)
The `react-native-url-polyfill` is not needed in Expo anymore since SDK 50 (the latest SDK is 51).

You can read more about it here:  https://docs.expo.dev/versions/unversioned/sdk/url/

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-06-04 03:37:44 +00:00
Thor 雷神 Schaeff
b0dd85d2a2 chore: update example dependencies. (#26381)
* chore: update example dependencies.

* chore: bump expo.
2024-05-17 13:39:31 +08:00
Peter
e167ecb804 Fix linting warnings in Flutter User Management Starter tutorial (#25090)
* Update User Management Starter Flutter to fix linting warnings

* bring Supabase instance up

---------

Co-authored-by: dshukertjr <dshukertjr@gmail.com>
2024-05-13 20:49:53 -05:00
Charis
0d1f8b8627 fix: sveltekit examples pass headers through (#23448)
The `x-supabase-api-version` header was added to Supabase APIs, so it
needs to be passed through in SvelteKit examples.
2024-05-02 11:28:43 -04:00
Honzoraptor
40b9a1f335 Fixed type error in SvelteKit user management app tutorial (#23371)
The type RequestHandler was missing in one of the code boxes with TypeScript code.

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-04-30 15:51:52 +00:00
Saugat Dhimal
8d997ea3be fix: tabs actions path in with-nextjs.mdx (#23445)
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-04-30 14:54:55 +00:00
Charis
170668431d fix: replace docs blockquotes with admonitions (#23160) 2024-04-22 15:45:19 -04:00
Charis
0c8f9942cf feat(understandability): add new server-side auth docs for sveltekit (#22574)
End-to-end guide for setting up Server-Side Auth with SvelteKit, covering:

- Protected routes
- Signin, signup, signout
- Protected data
2024-04-22 18:26:27 +00:00