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
  • НаукаНаука

Комментарии • 17

  • @rohitkharche7562
    @rohitkharche7562 7 месяцев назад +3

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

    • @sphorb
      @sphorb  7 месяцев назад

      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
    @virajmahida1655 7 месяцев назад +1

    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  7 месяцев назад +2

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

  • @danieldiazgiraldo8337
    @danieldiazgiraldo8337 7 месяцев назад

    Just what i need, thanks!

  • @Triple._.A
    @Triple._.A 4 месяца назад

    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  4 месяца назад +1

      Hey! Sure will do

  • @xNReaperx
    @xNReaperx 6 месяцев назад

    Great videos!

  • @method_actor
    @method_actor 7 месяцев назад +1

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

    • @sphorb
      @sphorb  7 месяцев назад

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

    • @method_actor
      @method_actor 7 месяцев назад

      @@sphorb That would be awesome, thanks :)

    • @sphorb
      @sphorb  7 месяцев назад +1

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

    • @method_actor
      @method_actor 7 месяцев назад

      Thanks!@@sphorb

  • @ruheHQ
    @ruheHQ 7 месяцев назад +1

    Trying to use the new v5 with prisma is a nightmare

    • @sphorb
      @sphorb  7 месяцев назад

      Yeah

  • @_bijaydas
    @_bijaydas 7 месяцев назад +1

    1 more ORM to learn 😥.