Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use Supabase for auth and database 🐘 #424

Draft
wants to merge 29 commits into
base: main
Choose a base branch
from

Conversation

jgoux
Copy link

@jgoux jgoux commented Sep 16, 2024

In this PR, we migrated from Vercel KV and NextAuth to Supabase.

It's still WIP.

Copy link

vercel bot commented Sep 16, 2024

@jgoux is attempting to deploy a commit to the Uncurated Tests Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

socket-security bot commented Sep 16, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@supabase/[email protected] None +1 246 kB stdim
npm/@supabase/[email protected] network Transitive: environment +12 2.65 MB kiwicopple
npm/[email protected] None 0 129 kB thebuilder
npm/[email protected] environment, filesystem, network Transitive: shell +57 14.8 MB kiwicopple
npm/[email protected] None 0 384 kB sindresorhus

🚮 Removed packages: npm/[email protected], npm/[email protected]

View full report↗︎

@jgoux jgoux changed the title use Supabase for auth and data storage 🐘 use Supabase for auth and database 🐘 Sep 16, 2024
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This component isn't used anywhere.

README.md Outdated
Remember to update your environment variables (`KV_URL`, `KV_REST_API_URL`, `KV_REST_API_TOKEN`, `KV_REST_API_READ_ONLY_TOKEN`) in the `.env` file with the appropriate credentials provided during the KV database setup.
Setup your Supabase project to store your Chat History:

1. In `/supabase/migrations/20240916140519_init.sql`, you'll find a SQL script to setup your database tables in Supabase

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github page link will be useful here. don't make me look for this file.

README.md Outdated
Setup your Supabase project to store your Chat History:

1. In `/supabase/migrations/20240916140519_init.sql`, you'll find a SQL script to setup your database tables in Supabase
2. Copy this script, and visit the [SQL Editor](https://supabase.com/dashboard/project/_/sql/new)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this link might be very confusing coming from Vercel. I will follow these steps shortly and report back.

README.md Outdated

1. In `/supabase/migrations/20240916140519_init.sql`, you'll find a SQL script to setup your database tables in Supabase
2. Copy this script, and visit the [SQL Editor](https://supabase.com/dashboard/project/_/sql/new)
3. Paste in the script and hit "RUN".

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this step can just be in the 2nd step so it looks easier.

README.md Outdated
Change the Auth confirmation path in the email confirmation template:

1. Go to the [Auth templates](https://supabase.com/dashboard/project/_/auth/templates) page in your dashboard.
2. In the `Confirm signup` template, change `{{ .ConfirmationURL }}` to `{{ .SiteURL }}/auth/confirm?token_hash={{ .TokenHash }}&type=signup`.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what ?!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants