Exactly what I was looking for. Thank you so much!
@mtcindianutube5 ай бұрын
This is awesome Steve 👌
@khanfaizan055 ай бұрын
Excellent professor 💯 👍👍👍. Thank you .. very much
@Marty725 ай бұрын
Great tutorial. Thanks.
@NurioonSoftware5 ай бұрын
I think this is the first video i watch on your channel that is not about javascript 😂
@bmehder4 ай бұрын
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?
@bmehder4 ай бұрын
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. 🙂
@JoonasKarp5 ай бұрын
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-Prof3ssorSt3v35 ай бұрын
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
@JoonasKarp5 ай бұрын
@@SteveGriffith-Prof3ssorSt3v3 isnt it possible with MERN ? I want to use nodejs for backend
@SteveGriffith-Prof3ssorSt3v35 ай бұрын
@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
@JoonasKarp5 ай бұрын
@@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-Prof3ssorSt3v35 ай бұрын
@@JoonasKarp cookies are tied to an origin. So you need to plan for that when architecting the site