Web Hosting with Github and Vercel

Поділитися
Вставка
  • Опубліковано 1 жов 2024

КОМЕНТАРІ • 14

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

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

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

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

  • @bmehder
    @bmehder 2 місяці тому

    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 2 місяці тому +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. 🙂

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

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

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

    Great tutorial. Thanks.

  • @mtcindianutube
    @mtcindianutube 3 місяці тому +1

    This is awesome Steve 👌

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

    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  3 місяці тому +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 3 місяці тому

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

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  3 місяці тому

      @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 3 місяці тому

      @@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  3 місяці тому

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