Web Hosting with Github and Vercel

Поделиться
HTML-код
  • Опубликовано: 24 янв 2025

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

  • @ritudey8520
    @ritudey8520 7 месяцев назад +2

    Exactly what I was looking for. Thank you so much!

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

    This is awesome Steve 👌

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

    Excellent professor 💯 👍👍👍.
    Thank you .. very much

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

    I think this is the first video i watch on your channel that is not about javascript 😂

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

    Great tutorial. Thanks.

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

    Steve, the last example is exactly what I needed. I was finally able to publish an Express / HTMX demo app. However, I have a public folder with a styles.css file inside it, and Vercel is not serving my stylesheet. It works on localhost, but not on Vercel, so I think I need to modify my vercel.json file. I just haven't been able to figure it out yet. Any suggestions?

    • @bmehder
      @bmehder 6 месяцев назад +1

      I figured it out. In the vercel.json file, I needed to route all the files with an extension (like .css) to the public folder, and every route without an extension to my app.js file. This involved using some regular expressions, which I am not great at. Luckily, there is stack overflow. 🙂

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

    I have a MERN app that I successfully deployed to Vercel. However, my client and back end each have their own URLs (both from Vercel). The project works fine, but I prefer not to have separate URLs for the back end and client. The project also includes authentication and authorization features. Do you have any video tutorials on deploying a MERN app to Vercel with just one URL? My folder structure includes a parent folder called 'estate,' which contains both 'client' and 'server' folders.

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  7 месяцев назад +1

      If you want to combine with a single url then I would recommend using Next.js on Vercel. Hope to have some tutorials on that this summer

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

      @@SteveGriffith-Prof3ssorSt3v3 isnt it possible with MERN ? I want to use nodejs for backend

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  7 месяцев назад

      @JoonasKarp you can configure things in the vercel.json so some routes are handled with server-side node and other routes return static files, etc. But honestly I prefer it as a practice to split the api from site by using two servers and two urls

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

      @@SteveGriffith-Prof3ssorSt3v3 I also prefer using two URLs, but I'm encountering a cookies problem. When I navigate from one page to another, the cookies from the previous page disappear, but they reappear when I go back to that previous page.

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  7 месяцев назад

      @@JoonasKarp cookies are tied to an origin. So you need to plan for that when architecting the site