The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Update tabs for with-redwoodjs.mdx
Joshen Lim932a41f65dd0
diff --git a/apps/temp-docs/docs/guides/with-redwoodjs.mdx b/apps/temp-docs/docs/guides/with-redwoodjs.mdxindex 792af09bd5b..fb60980339f 100644--- a/apps/temp-docs/docs/guides/with-redwoodjs.mdx+++ b/apps/temp-docs/docs/guides/with-redwoodjs.mdx@@ -31,7 +31,7 @@ This example provides the steps to build a simple user management app (from scraBy the end of this guide you'll have an app which allows users to login and update some basic profile details:-+:::noteNote: For RedwoodJS apps, port will be 8910@@ -108,28 +108,23 @@ Now we are going to set up the database schema. We can use the "User Managementor you can just copy/paste the SQL from below and run it yourself.<Tabs- defaultValue="dashboard"- values={[- {label: 'Dashboard', value: 'dashboard'},- {label: 'SQL', value: 'sql'},- ]}>-<TabItem value="dashboard">+ scrollable+ size="small"+ type="underlined"+ defaultActiveId="dashboard"+>+<TabPanel id="dashboard" label="Dashboard">1. Go to the [SQL Editor](https://app.supabase.com/project/_/sql) page in the Dashboard.2. Click **User Management Starter**.3. Click **Run**.<video width="99%" muted playsInline controls="true">- <source- src="/docs/videos/sql-user-management-starter.mp4"- type="video/mp4"- muted- playsInline- />+ <source src="/docs/videos/sql-user-management-starter.mp4" type="video/mp4" muted playsInline /></video>-</TabItem>-<TabItem value="sql">+</TabPanel>+<TabPanel id="sql" label="SQL">```sql-- Create a table for public "profiles"@@ -180,7 +175,7 @@ create policy "Anyone can upload an avatar."```-</TabItem>+</TabPanel></Tabs>#### Important Note about Prisma and Migrations@@ -199,12 +194,7 @@ We just need to get the URL as well as the `anon`, `service_role` and `JWT_SECRE3. Find your API `URL`, `anon`, and `service_role` keys on this page.<video width="99%" muted playsInline controls="true">- <source- src="/docs/videos/api/api-url-and-key.mp4"- type="video/mp4"- muted- playsInline- />+ <source src="/docs/videos/api/api-url-and-key.mp4" type="video/mp4" muted playsInline /></video>## Building the App@@ -303,10 +293,7 @@ import { createClient } from '@supabase/supabase-js'// ...-const supabaseClient = createClient(- process.env.SUPABASE_URL,- process.env.SUPABASE_KEY-)+const supabaseClient = createClient(process.env.SUPABASE_URL, process.env.SUPABASE_KEY)const App = () => (<FatalErrorBoundary page={FatalErrorPage}>@@ -418,9 +405,7 @@ const Auth = () => {<div className="row flex-center flex"><div className="col-6 form-widget"><h1 className="header">Supabase + RedwoodJS</h1>- <p className="description">- Sign in via magic link with your email below- </p>+ <p className="description">Sign in via magic link with your email below</p><div><inputclassName="inputField"@@ -670,9 +655,7 @@ const Avatar = ({ url, size, onUpload }) => {async function downloadImage(path) {try {- const { data, error } = await supabase.storage- .from('avatars')- .download(path)+ const { data, error } = await supabase.storage.from('avatars').download(path)if (error) {throw error}@@ -696,9 +679,7 @@ const Avatar = ({ url, size, onUpload }) => {const fileName = `${Math.random()}.${fileExt}`const filePath = `${fileName}`- let { error: uploadError } = await supabase.storage- .from('avatars')- .upload(filePath, file)+ let { error: uploadError } = await supabase.storage.from('avatars').upload(filePath, file)if (uploadError) {throw uploadError@@ -722,10 +703,7 @@ const Avatar = ({ url, size, onUpload }) => {style={{ height: size, width: size }}/>) : (- <div- className="avatar no-image"- style={{ height: size, width: size }}- />+ <div className="avatar no-image" style={{ height: size, width: size }} />)}<div style={{ width: size }}><label className="button primary block" htmlFor="single">