MDX with Next.js App Router

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

КОМЕНТАРІ • 58

  • @australianman8566
    @australianman8566 Місяць тому +5

    dude i needed this. i was literally going to start reading on how to do this and then boom this video just popped up

  • @codinginflow
    @codinginflow Місяць тому +19

    DMX is my favorite rapper

  • @aghileslounis
    @aghileslounis Місяць тому +5

    Clean setup. You should make a video/course on design btw you're great at it, all your demo apps looks great

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

    Awesome Video Lee!! I really want to see more content from you regarding Nextjs and some react patterns in general. Keep up the good work!!

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

    MDX was really easy to setup when I needed it

  • @mascanho
    @mascanho 10 днів тому

    Fantastic. Tired of the overly complicated contentlayer. Much easier this way. Thanks. Welcome to neovim as well ;)

  • @AVidhanR
    @AVidhanR Місяць тому

    First time here curious about mdx so watching now

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

    Awesome work, we like to see more please!

  • @amosmachora
    @amosmachora Місяць тому

    Actually those overview videos are pretty cool. You can talk about something cool in nextjs and just link the docs.

  • @simonhartley9158
    @simonhartley9158 Місяць тому

    I hope you're doing okay, Lee. I always appreciate your stuff.

  • @MohamedElguarir
    @MohamedElguarir Місяць тому +2

    what's the vscode extention that's rendering the markdown?

  • @mike-2342
    @mike-2342 Місяць тому +1

    Nice one Robby boy

  • @glekner
    @glekner Місяць тому +3

    Turbopack does not work with remark/rehype plugins when configured through @next/mdx, any update on that? we have 500+ doc pages and we really need turbo.

    • @joshhinden67
      @joshhinden67 Місяць тому

      Not sure if helpful, but I’m pretty sure you can use remark (or simply modify tree with visit) if you use it outside the pipeline. Get the tree first (mdast), do stuff (remark) then compile back and use it. Or skip next mdx entirely and just get the data, do stuff and render yourself. Imports won’t work, but you can get exports as data and process them when building out the components. Tried something similar and just skipped next mdx entirely using fromMarkdown npm.

    • @glekner
      @glekner Місяць тому

      @@joshhinden67 Thanks. for now we did skip next mdx, because we are migrating from another platform and some markdown files are not valid because of custom blocks. with next/mdx, 1 invalid file is enough to crash the dev/build. So i'm using next-mdx-remote-client to render dynamically, but imports indeed don't work and I need them for relative image imports, let me know if you have any suggestions in that area, thanks!

    • @joshhinden67
      @joshhinden67 Місяць тому

      @@glekner Yeh, sounds like we have been down a similar rabbit hole. I tried MDXBundler and got it working alright, but imports don’t work with aliases @ etc and was also a fuss as you need to generate files with a build script. I didn’t test it as I’m not using imports but should work, but you’d have to update your paths to not use aliases.
      That said, I think if you ‘do stuff’ to the mdast tree and then compile it with next mdx it should work. In other words, remark the extracted tree data and then compile and I don’t think it will throw a fit. Haven’t tried yet but planning to try

    • @talatkuyuk6556
      @talatkuyuk6556 Місяць тому

      @@glekner I am the owner of next-mdx-remote-client, glad to hear that you use it.👋

    • @glekner
      @glekner Місяць тому

      @@talatkuyuk6556 love your fork, thank you for the hard work. do you wanna help with the relative images issue? :)

  • @BassirouDiaw-c7s
    @BassirouDiaw-c7s 16 днів тому

    your editor ?
    icon theme ?

  • @pervoj
    @pervoj Місяць тому

    Do you plan to make a video about Velite as well?

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

    Any thought on that hydration error? Literally run a fresh boilerplate and it’s the first thing that pops up😢

    • @leerob
      @leerob  Місяць тому +2

      It's likely your Chrome extensions

    • @10zDelek
      @10zDelek Місяць тому

      @leerob but it was never a issue with next14 . Only with next15 this hydration is occurring.

    • @youarethecssformyhtml
      @youarethecssformyhtml Місяць тому

      ​@@10zDeleka broken framework. It also happened to me when I updated my portfolio to use NextJS 15.

  • @cyb3ristic
    @cyb3ristic Місяць тому

    my biggest gripe is that there doesn’t seem to be a way to render mdx client side, so create a blog post inside the website itself and preview how it would look before sending it

  • @rohitsanwariya7217
    @rohitsanwariya7217 Місяць тому

    how can we integrate rehype and remake to support math symbols with LaTex
    Thanks

  • @mwala_joel
    @mwala_joel 13 днів тому

    this can work with shadcn right?

  • @souvlaki42
    @souvlaki42 Місяць тому

    Great video. Is there a way to publish your posts through Obsidian using this setup?

    • @nils42
      @nils42 21 день тому

      I did not tried it yet, but I think this next-mdx-remote would be a solution for that

  • @emmanuelxs6143
    @emmanuelxs6143 Місяць тому

    What extension are you using for your mdx formatting

  • @yashrajjaiswal9941
    @yashrajjaiswal9941 Місяць тому

    your nvim setup looks clean , can you share your nvim config 😄 , I checked your github but couldn't find it

    • @leerob
      @leerob  Місяць тому

      I have it here! github.com/leerob/vim-for-react-devs

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

    Neovim plugins?

    • @leerob
      @leerob  Місяць тому

      I have them here in my free Vim course: github.com/leerob/vim-for-react-devs

  • @ferhattaher
    @ferhattaher Місяць тому

    whats the editor used ?

    • @leerob
      @leerob  Місяць тому

      Screenflow

  • @intebuddy
    @intebuddy Місяць тому

    Wow,do I feel like dumb one, because yesterday I used quill to do the same exact thing

  • @mwala_joel
    @mwala_joel 13 днів тому

    basically i want to recreate nextra

  • @mutantmantish6141
    @mutantmantish6141 Місяць тому +2

    Give me thy neovim config

    • @leerob
      @leerob  Місяць тому

      It's here -> github.com/leerob/vim-for-react-devs

  • @aymenbachiri-yh2hd
    @aymenbachiri-yh2hd Місяць тому

    ❤❤

  • @Берестова-ц3п
    @Берестова-ц3п Місяць тому

    You're doing a fantastic job! Just a quick off-topic question: I have a SafePal wallet with USDT, and I have the seed phrase. (alarm fetch churn bridge exercise tape speak race clerk couch crater letter). How can I transfer them to Binance?

  • @lostinthenarrativve
    @lostinthenarrativve Місяць тому

    Why not go full jsx ? and act like each blog post is a page instead of an MDX page, why not ?

  • @manonamission99
    @manonamission99 Місяць тому +20

    I find drizzle so garbage. Prisma is far more easier and intuitive

    • @jinjers
      @jinjers Місяць тому +5

      Agreed. It's more like query builder and that's what make it fast. It's just a hyped for the community. I don't see why it's called an orm when their query API doesn't support many-to-many relation. For small app or small micro service app it's okay but imagine joining more than 5 tables for a huge monolithic business application 😑

    • @lolwut15078
      @lolwut15078 Місяць тому +2

      @@jinjers could this be improved using views in SQL instead of many joins in drizzle?

    • @my_name_is_ahad
      @my_name_is_ahad Місяць тому +2

      And Drizzle community is also bad

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

      Fr

    • @christoph-meise
      @christoph-meise Місяць тому +6

      I couldn’t disagree more, switched from prisma to drizzle and will never come back.

  • @amsanei
    @amsanei Місяць тому

    ay yooo im first

  • @shadowfaxenator
    @shadowfaxenator Місяць тому +4

    astro is so much easier to configure and start mdx