Astro SSR on Cloudflare Pages / Lucia Github OAuth / Drizzle ORM / Cloudflare D1

Поділитися
Вставка
  • Опубліковано 12 вер 2024
  • Source code: github.com/and...
    Trying Astro on Cloudflare Pages (with server side rendering), going to use Lucia Auth with Github and Cloudflare D1 as the database, with Drizzle ORM this time!
    Support the channel:
    Buy Me a Coffee www.buymeacoff...
    Ko-fi ko-fi.com/andr...
    UA-cam / @andrey.fadeev
    PayPal paypal.me/andf...
    Follow me:
    LinkedIn / andfadeev
    X / andfadeev
    Substack blog.andreyfad...
    Telegram t.me/andreyfad...
    Github github.com/and...
    Instagram / andfadeev
    I'm truly grateful for your support, and thank you for watching! 🙏

КОМЕНТАРІ • 14

  • @andrey.fadeev
    @andrey.fadeev  4 місяці тому +3

    ☕ If you liked this video and want to support my channel, please consider buying me a coffee. Your contribution helps me create more content like this:
    👉 Buy Me a Coffee: www.buymeacoffee.com/andrey.fadeev
    👉 Ko-fi: ko-fi.com/andreyfadeev
    Please also subscribe to my other resources:
    👉 Substack: blog.andreyfadeev.com
    👉 Telegram: t.me/andreyfadeevchannel
    I'm truly grateful for your support, and thank you for watching! 🙏

  • @chiubaca
    @chiubaca 3 місяці тому +2

    Thank you for the resource, found navigating Lucia docs to do exactly this very difficult, but this has helped a lot!

  • @jim.....
    @jim..... 4 місяці тому +2

    These videos are super practical, thanks for putting the time into sharing

    • @andrey.fadeev
      @andrey.fadeev  4 місяці тому

      Thanks, glad those are helpful and I have fun time making them!

  • @punchbit
    @punchbit 4 місяці тому +2

    Great walkthrough! Thanks!

  • @4115steve
    @4115steve 4 місяці тому +2

    thanks bro

  • @anupvarghese16
    @anupvarghese16 Місяць тому +1

    Thank you for this. I expanded this video to implement the auth using (email & password) Lucia and using D1. I find the latency for login page is very high using SSR & cloud flare D1. Sometimes it is even up to 5s. Did you face anything like this?

    • @andrey.fadeev
      @andrey.fadeev  Місяць тому +1

      Hi, interesting, I don't remember having that bad latency, maybe it's something else in the code?

    • @anupvarghese16
      @anupvarghese16 Місяць тому +1

      @@andrey.fadeev Thanks for your reply.
      I think I figured it out. I am using scrypt for hashing the password. Apparently this is a slower process on workers. Probably need to look at a zero dependency alternative.

    • @LouisDeconinck
      @LouisDeconinck 23 дні тому

      @@anupvarghese16 Would you mind sharing your code (or a video) on how you did email & password auth?

    • @anupvarghese16
      @anupvarghese16 22 дні тому

      @@LouisDeconincksure I will make one and share it with you