Next Js 14 PlanetScale Drizzle Integration for Authentication on Edge Runtime
HTML-код
- Опубликовано: 28 июл 2024
- I show you how to implement drizzle adapter for next js authentication. I also show you how to create your database in planetscale and connect that with your application.
See my previous video showing authentication implementation with Auth V5:
• Next Js 14 Authenticat...
_____________________________________________________
/ sphorbio
Source Code: github.com/sphorb/next-js-pla...
_____________________________________________________
00:00 - Intro
00:49 - Setup For Drizzle ORM
02:12 - Creating PlanetScale Database & Integration
04:33 - Generating Database Schema and Pushing Schema
10:36 - Implementing Drizzle Adapter with Authentication
11:34 - Final Result
12:48 - Conclusion Наука
Try adding ssl={"rejectUnauthorized":true} to the database url to solbe your error.
Great video btw 👍
thanks! Yeah first I tried to connect using a url and added that at the end but it didn't work for me sadly
Thanks, your videos are helping a lot for edge runtime development. Please create a video for CRUD operations(or anything in detail that helps to learn how could we build whole edge runtime webapp) using edge function if possible.
Thank you! Yeah I've been investigating how to do everything in edge runtime, I'll try and create videos for that👌
Just what i need, thanks!
Hey! Thanks so much for this, very easy to follow! However, PlanetScale is getting rid of their Hobby tier. Could you please create a tutorial on how to set up Drizzle and Next-Auth with another database? A database from AWS, GCP or Azure would be highly appreciated as it's so hard to find tutorials for those.
Hey! Sure will do
Great videos!
Do you have an example repo? Trying to get it to work and I'm getting weird errors
I don't but I can create one if that's helpful:)
@@sphorb That would be awesome, thanks :)
here you go :) github.com/sphorb/next-js-planetscale-drizzle-integration
Thanks!@@sphorb
Trying to use the new v5 with prisma is a nightmare
Yeah
1 more ORM to learn 😥.