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

  • @danieldiazgiraldo8337
    @danieldiazgiraldo83376 ай бұрын

    Just what i need, thanks!

  • @xNReaperx
    @xNReaperx5 ай бұрын

    Great videos!

  • @rohitkharche7562
    @rohitkharche75626 ай бұрын

    Try adding ssl={"rejectUnauthorized":true} to the database url to solbe your error. Great video btw 👍

  • @sphorb

    @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

  • @virajmahida1655
    @virajmahida16556 ай бұрын

    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

    @sphorb

    6 ай бұрын

    Thank you! Yeah I've been investigating how to do everything in edge runtime, I'll try and create videos for that👌

  • @Triple._.A
    @Triple._.A3 ай бұрын

    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

    @sphorb

    3 ай бұрын

    Hey! Sure will do

  • @method_actor
    @method_actor6 ай бұрын

    Do you have an example repo? Trying to get it to work and I'm getting weird errors

  • @sphorb

    @sphorb

    6 ай бұрын

    I don't but I can create one if that's helpful:)

  • @method_actor

    @method_actor

    6 ай бұрын

    @@sphorb That would be awesome, thanks :)

  • @sphorb

    @sphorb

    6 ай бұрын

    here you go :) github.com/sphorb/next-js-planetscale-drizzle-integration

  • @method_actor

    @method_actor

    6 ай бұрын

    Thanks!@@sphorb

  • @ruheHQ
    @ruheHQ6 ай бұрын

    Trying to use the new v5 with prisma is a nightmare

  • @sphorb

    @sphorb

    6 ай бұрын

    Yeah

  • @_bijaydas
    @_bijaydas6 ай бұрын

    1 more ORM to learn 😥.

Келесі