Next Js 14 PlanetScale Drizzle Integration for Authentication on Edge Runtime
Ғылым және технология
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
Пікірлер: 17
Just what i need, thanks!
Great videos!
Try adding ssl={"rejectUnauthorized":true} to the database url to solbe your error. Great video btw 👍
@sphorb
6 ай бұрын
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.
@sphorb
6 ай бұрын
Thank you! Yeah I've been investigating how to do everything in edge runtime, I'll try and create videos for that👌
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.
@sphorb
3 ай бұрын
Hey! Sure will do
Do you have an example repo? Trying to get it to work and I'm getting weird errors
@sphorb
6 ай бұрын
I don't but I can create one if that's helpful:)
@method_actor
6 ай бұрын
@@sphorb That would be awesome, thanks :)
@sphorb
6 ай бұрын
here you go :) github.com/sphorb/next-js-planetscale-drizzle-integration
@method_actor
6 ай бұрын
Thanks!@@sphorb
Trying to use the new v5 with prisma is a nightmare
@sphorb
6 ай бұрын
Yeah
1 more ORM to learn 😥.