Next.js + Postgres Setup Walkthrough: Dev/Production

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ธ.ค. 2024

ความคิดเห็น • 19

  • @vaniad555
    @vaniad555 11 หลายเดือนก่อน +3

    Glad I came across your channel, thank you!

  • @bejaysus23
    @bejaysus23 ปีที่แล้ว +3

    Another great tutorial. Keep these coming 🙂

  • @VincentFulco
    @VincentFulco ปีที่แล้ว +1

    Great clear and practical teaching style.

    • @kevinwwwade
      @kevinwwwade  11 หลายเดือนก่อน

      Thank you! ❤️

  • @yogawithaaron
    @yogawithaaron 7 หลายเดือนก่อน +3

    Literally answered my exact question. I.e. how to deploy Vercel Postgres DB to production in a Next.js app. Ty ty ty!

  • @pablotexeira7579
    @pablotexeira7579 ปีที่แล้ว

    that's amazing, great explanation. Keep up the good workm Kevin!!!!

  • @berenjor
    @berenjor ปีที่แล้ว +4

    This is a great tutorial! What I find confusing is that you're declaring the schema with Prisma but then you are running a migration with Knex, which seems rather a manual process.
    A small bit of feedback for future videos. The editor font size looks very small on YT, bigger would be easier to read.

  • @dylancunningham4308
    @dylancunningham4308 ปีที่แล้ว

    Very concise tutorial! Thanks for that. I did have an issue where we started up the nextjs app with database collection. Something about `public.posts` is undefined in the postgres console. Solution for me was to run `pnpx prisma generate`.

  • @Null-ky4gx
    @Null-ky4gx 7 หลายเดือนก่อน

    hi what theme you use?

  • @jalbers3150
    @jalbers3150 ปีที่แล้ว

    excellent tutorial

  • @myrez_
    @myrez_ ปีที่แล้ว

    11:44 When I try to run this command, i get
    'TS_NODE_COMPILER_OPTIONS' not recognized as an internal or external command, operable program or batch file

    • @kevinwwwade
      @kevinwwwade  ปีที่แล้ว

      Hmmm... sounds like you are on Windows. `TS_NODE_COMPILER_OPTIONS=...` prefixed to a command is a way to quickly set that environment variable for the life of a command on Mac/linux. Not sure off the top of my head how to do that on Windows, but maybe that gives you something to search for.

    • @milordmariusz
      @milordmariusz ปีที่แล้ว +7

      "db:migrate:make": "set TS_NODE_COMPILER_OPTIONS={ \"module\": \"commonjs\" } && knex migrate:make"

  • @ths871
    @ths871 ปีที่แล้ว

    thank you man !

  • @RealEstateandTechnology
    @RealEstateandTechnology 7 หลายเดือนก่อน

    every thing was going good, but buddy you should write a disclaimer for window's user :( .

    • @kevinwwwade
      @kevinwwwade  7 หลายเดือนก่อน

      I haven’t used windows in forever, so I don’t know what the issues would be. What did you experience? That would be helpful. Thanks!

    • @aaronbegy9857
      @aaronbegy9857 7 หลายเดือนก่อน +1

      @@kevinwwwade windows gets the 'TS_NODE_COMPILER_OPTIONS' not recognized as an internal or external command. but as someone stated in the above comment you can change the package.json to "db:migrate:make": "set TS_NODE_COMPILER_OPTIONS={ \"module\": \"commonjs\" } && knex migrate:make" and it works :)

  • @ashimov1970
    @ashimov1970 ปีที่แล้ว +2

    I find Drizzle ORM much better than Prisma