fix: another try at images in next.js
This commit is contained in:
@@ -40,14 +40,16 @@ 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.
|
||||
|
||||
<Image
|
||||
src="/docs/new-project.webp"
|
||||
alt="New project in supabase"
|
||||
quality="100"
|
||||
width={500}
|
||||
height={500}
|
||||
className="nx-rounded-md nx-my-4"
|
||||
/>
|
||||
<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>
|
||||
|
||||
<Callout>
|
||||
Make sure you save your database password somewhere, else you won't be able to get it back
|
||||
@@ -68,14 +70,16 @@ 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
|
||||
|
||||
<Image
|
||||
src="/docs/db-url.webp"
|
||||
alt="DB URL in the supabase dashboard"
|
||||
quality="100"
|
||||
width={500}
|
||||
height={500}
|
||||
className="nx-rounded-md nx-my-4"
|
||||
/>
|
||||
<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>
|
||||
|
||||
- Copy the URL in the image above for your `db url`
|
||||
- Paste it somewhere
|
||||
@@ -93,27 +97,31 @@ pnpm supabase db push --db-url "URL HERE"
|
||||
|
||||
#### Result
|
||||
|
||||
<Image
|
||||
src="/docs/db-push-result.webp"
|
||||
alt="Result of supabase db push"
|
||||
quality="100"
|
||||
width={500}
|
||||
height={500}
|
||||
className="nx-rounded-md nx-my-4"
|
||||
/>
|
||||
<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>
|
||||
|
||||
### 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.
|
||||
|
||||
<Image
|
||||
src="/docs/auth-settings.webp"
|
||||
alt="Authentication configuration"
|
||||
quality="100"
|
||||
width={500}
|
||||
height={500}
|
||||
className="nx-rounded-md nx-my-4"
|
||||
/>
|
||||
<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>
|
||||
|
||||
### Add configurations to your environment variables
|
||||
|
||||
@@ -127,14 +135,16 @@ PUBLIC_SUPABASE_ANON_KEY=
|
||||
|
||||
To get the correct environment variables, follow the instructions in this image
|
||||
|
||||
<Image
|
||||
src="/docs/match-env.webp"
|
||||
alt="Source of supabase environment variables"
|
||||
quality="100"
|
||||
width={500}
|
||||
height={500}
|
||||
className="nx-rounded-md nx-my-4"
|
||||
/>
|
||||
<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>
|
||||
|
||||
### Tada - That's all
|
||||
|
||||
|
||||
Reference in New Issue
Block a user