Next.js - How to setup & use Vercel Postgres (Serverless PostgreSQL database)

Поділитися
Вставка
  • Опубліковано 28 січ 2025

КОМЕНТАРІ • 52

  • @tomdringer985
    @tomdringer985 Рік тому +3

    Thank you! Answers all my questions so far.

  • @GarickMendez
    @GarickMendez 8 місяців тому +1

    Straightforward and simple. Thanks!

  • @wassu8499
    @wassu8499 Рік тому +1

    Oh I am surprised today one more video 😅 love from India 🇮🇳

    • @TuomoKankaanpaa
      @TuomoKankaanpaa  Рік тому

      Yeah wanted to get the Vercel KV and Vercel Postgres tutorials out asap! Cheers!

    • @wassu8499
      @wassu8499 Рік тому

      @@TuomoKankaanpaa where ?

    • @TuomoKankaanpaa
      @TuomoKankaanpaa  Рік тому

      @@wassu8499 Here is the Vercel KV video ua-cam.com/video/nV3IN4Bkl9s/v-deo.html

  • @CREATORS93
    @CREATORS93 4 місяці тому

    No bullshit straight to the point. Awesome!

  • @mrinaalarora507
    @mrinaalarora507 6 місяців тому

    great video, very helpful
    was stuck from a long time.

  • @mahfoudh_arous
    @mahfoudh_arous 3 місяці тому

    thanks 🙏, concise and very helpful!

  • @PeopleWatchingMarcus
    @PeopleWatchingMarcus Рік тому +1

    thanks for the guide

  • @franmoyano
    @franmoyano 10 місяців тому +1

    nice video! is there a way to insert massive data from sql export to the vercel's db? i've been working with my local database, and i would like to replicate my data to the remote one. Thanks a lot guy!

    • @TuomoKankaanpaa
      @TuomoKankaanpaa  10 місяців тому

      Thanks! Not sure if there is super good way to insert massive amounts of data. Depending on how massive your data export is, you could just copy paste your export to the query window inside vercel postgres db and that way insert the data, this of course won't be efficient if you actually have massive amounts of data.

  • @ManiSingh-gr7zi
    @ManiSingh-gr7zi 7 місяців тому

    Brilliant, thank you.

  • @codyt_arsis6698
    @codyt_arsis6698 Рік тому

    I dont want to deploy my project to vercel or create a db there. i created my pg db locally and i need a way that will allow me to connect to it then use the api to run queries against it

    • @jeremyAr
      @jeremyAr 11 місяців тому +1

      Did you manage to figure it out? Also having the same problem as yours.

    • @codyt_arsis6698
      @codyt_arsis6698 11 місяців тому

      @@jeremyAr no. i ended up deploying my site to vercel

  • @ilirbajrami2902
    @ilirbajrami2902 Рік тому

    I like it when you say "shwitz" :)

  • @dg1h1t
    @dg1h1t Рік тому +2

    Great job, where do I leave a tip?

    • @TuomoKankaanpaa
      @TuomoKankaanpaa  9 місяців тому

      You can leave a tip here if you wish: bit.ly/3XTXNZu Thanks!

  • @MakarovSergey39
    @MakarovSergey39 Рік тому

    Is it possible to hosting postgres in Vercel despite not using Next JS as a framework(ex: Vue JS), and is there any different step if I want to link verrcel postgres db to ORM (ex: Sequelize) ?

    • @mrevergreen9049
      @mrevergreen9049 Рік тому

      I have the same question ☝

    • @TuomoKankaanpaa
      @TuomoKankaanpaa  11 місяців тому

      You can use it with other ways too, if you check your postgres db in vercel there is different options you can use to connect it to eg using drizzle-orm

  • @williamtanardi3952
    @williamtanardi3952 Рік тому

    How would this be done using app router? right now when I open /api/pets it shows page error 404

    • @TuomoKankaanpaa
      @TuomoKankaanpaa  Рік тому

      You can use route handlers to replace api routes, I have a video about route handlers you should check out ua-cam.com/video/rG2exRlD2FQ/v-deo.html

  • @DevGio
    @DevGio 9 місяців тому +1

    Have you tried this via Prisma, Vercel Postgres? I keep getting an error code P1001 saying it can’t connect to the database. Even Vercels example repository errors out 😂

    • @TuomoKankaanpaa
      @TuomoKankaanpaa  8 місяців тому

      I havent tried it, sounds like a nasty bug if vercel examples also error out

    • @DevGio
      @DevGio 8 місяців тому

      @@TuomoKankaanpaa I found a fix. I was trying to use yarn prisma migrate dev. The fix was to use yarn prisma migrate dev --name -enter name-. For some reason giving it a name with the name flag worked for me.

  • @dg1h1t
    @dg1h1t Рік тому

    can i use this same example for app roter?

  • @hamzandev9482
    @hamzandev9482 Рік тому

    Can i deploy my next13 app + Prisma + postgres into vercel postgres?

  • @tomdringer985
    @tomdringer985 Рік тому

    Would anyone know why my api/pets would 404? I'm using the app folder, rather than pages.

    • @TuomoKankaanpaa
      @TuomoKankaanpaa  Рік тому

      Make sure your route handlers are setup correctly if using app folder, here is a video about route handlers ua-cam.com/video/rG2exRlD2FQ/v-deo.html

  • @LtTheXamax
    @LtTheXamax Рік тому

    Can you do video about Server Actions of nextjs 13.4

  • @oOserkanCakmakOo
    @oOserkanCakmakOo 11 місяців тому

    Thank you

  • @higorallan4312
    @higorallan4312 Рік тому

    soo good, thankss

  • @michaelanthony4750
    @michaelanthony4750 Рік тому

    Thanks for the quick intro

  • @stanleychukwu7424
    @stanleychukwu7424 Рік тому +1

    hi Thomas, you have a little error with the video title, I believe you meant next.js not next.ja

  • @rm_-rf_dot
    @rm_-rf_dot 3 місяці тому

    kiitos