fix: final fix of images on docs

This commit is contained in:
Rotimi Best
2024-02-10 18:09:00 +01:00
parent 087006dd61
commit c6620708dc
12 changed files with 21 additions and 91 deletions
@@ -1,6 +1,11 @@
import Image from 'next/image';
import { Steps } from 'nextra/components';
import { Callout } from 'nextra/components';
import DBUrl from './images/db-url.webp';
import DBPushResult from './images/db-push-result.webp';
import AuthSettings from './images/auth-settings.webp';
import MatchEnvVariables from './images/match-env.webp';
import NewProject from './images/new-project.webp';
# Supabase Cloud Setup
@@ -25,7 +30,7 @@ If your requirement matches any of the above, then this guide is for you.
title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
className="nx-my-4 nx-nx-rounded-md nx-my-4"
className="nx-my-4 nx-rounded-md"
allowfullscreen
></iframe>
</div>
@@ -40,16 +45,7 @@ For this step you need to have signed up for supabase and create an account, jus
Once you have an account just click on the _New Project_ on your dashboard. After that you should see a similar screen to the below, fill in the fields.
<div className="nx-w-full nx-flex nx-items-center nx-justify-center">
<Image
src={`${process.env.imagePath}/supabase-cloud/new-project.webp`}
alt="New project in supabase"
quality="100"
width={500}
height={500}
className="nx-rounded-md nx-my-4"
/>
</div>
<Image src={NewProject} alt="New project in supabase" quality="100" />
<Callout>
Make sure you save your database password somewhere, else you won't be able to get it back
@@ -70,16 +66,7 @@ Follow the instruction in your terminal to generate your access token. Paste the
- Go to the supabase dashboard, go to your project, click on the settings icon on the left side bar
<div className="nx-w-full nx-flex nx-items-center nx-justify-center">
<Image
src={`${process.env.imagePath}/supabase-cloud/db-url.webp`}
alt="DB URL in the supabase dashboard"
quality="100"
width={500}
height={500}
className="nx-rounded-md nx-my-4"
/>
</div>
<Image src={DBUrl} alt="DB URL in the supabase dashboard" quality="100" />
- Copy the URL in the image above for your `db url`
- Paste it somewhere
@@ -97,31 +84,13 @@ pnpm supabase db push --db-url "URL HERE"
#### Result
<div className="nx-w-full nx-flex nx-items-center nx-justify-center">
<Image
src={`${process.env.imagePath}/supabase-cloud/db-push-result.webp`}
alt="Result of supabase db push"
quality="100"
width={500}
height={500}
className="nx-rounded-md nx-my-4"
/>
</div>
<Image src={DBPushResult} alt="Result of supabase db push" quality="100" />
### Configure Auth in your Supabase project
Here we will update our email configurations, to prevent supabase from sending confirmation emails on signup. This is because we don't have email confirmation setup on ClassroomIO, this feature will come later. If you don't disable it, you won't be able to signup into the application.
<div className="nx-w-full nx-flex nx-items-center nx-justify-center">
<Image
src={`${process.env.imagePath}/supabase-cloud/auth-settings.webp`}
alt="Authentication configuration"
quality="100"
width={500}
height={500}
className="nx-rounded-md nx-my-4"
/>
</div>
<Image src={AuthSettings} alt="Authentication configuration" quality="100" />
### Add configurations to your environment variables
@@ -135,16 +104,7 @@ PUBLIC_SUPABASE_ANON_KEY=
To get the correct environment variables, follow the instructions in this image
<div className="nx-w-full nx-flex nx-items-center nx-justify-center">
<Image
src={`${process.env.imagePath}/supabase-cloud/match-env.webp`}
alt="Source of supabase environment variables"
quality="100"
width={500}
height={500}
className="nx-rounded-md nx-my-4"
/>
</div>
<Image src={MatchEnvVariables} alt="Source of supabase environment variables" quality="100" />
### Tada - That's all