The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Updated plain text descriptions of file locations.
Ryan Peach41d411939b09
diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-sveltekit.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-sveltekit.mdxindex d8af92de291..0efd740c84f 100644--- a/apps/docs/pages/guides/getting-started/tutorials/with-sveltekit.mdx+++ b/apps/docs/pages/guides/getting-started/tutorials/with-sveltekit.mdx@@ -46,8 +46,8 @@ PUBLIC_SUPABASE_URL="YOUR_SUPABASE_URL"PUBLIC_SUPABASE_ANON_KEY="YOUR_SUPABASE_KEY"```-Now that we have the API credentials in place, let's create a helper file to initialize the Supabase client. These variables will be exposed-on the browser, and that's completely fine since we have [Row Level Security](/docs/guides/auth#row-level-security) enabled on our Database.+Now that we have the API credentials in place, let's create a helper file to initialize the Supabase client. Call it `src/lib/supabaseClient.ts`.+These variables will be exposed on the browser, and that's completely fine since we have [Row Level Security](/docs/guides/auth#row-level-security) enabled on our Database.```js title=src/lib/supabaseClient.tsimport { createClient } from '@supabase/auth-helpers-sveltekit'@@ -136,6 +136,7 @@ import '$lib/supabaseClient'### Set up a Login componentLet's set up a Svelte component to manage logins and sign ups. We'll use Magic Links, so users can sign in with their email without using passwords.+Create a new `Auth.svelte` component in the `src/routes` directory to handle this functionality.```html title=src/routes/Auth.svelte<script lang="ts">@@ -178,7 +179,7 @@ Let's set up a Svelte component to manage logins and sign ups. We'll use Magic L### Account componentAfter a user is signed in, they need to be able to edit their profile details and manage their account.-Create a new `Account.svelte` component to handle this functionality.+Create a new `Account.svelte` component in the `src/routes` directory to handle this functionality.```html title=src/routes/Account.svelte<script lang="ts">@@ -328,7 +329,7 @@ Every Supabase project is configured with [Storage](/docs/guides/storage) for ma### Create an upload widget-Let's create an avatar for the user so that they can upload a profile photo. We can start by creating a new component:+Let's create an avatar for the user so that they can upload a profile photo. We can start by creating a new component called `Avatar.svelte` in the `src/routes` directory:```html title=src/routes/Avatar.svelte<script lang="ts">