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