I’ve setup my vercel.json to run the backend, and 2 frontends in a single project.
the backend and the user frontend are working fine. However, the admin frontend always shows blank page.
Upon checking the dev tools, i noticed that the index.html for adminview (when im on ‘/admin’) is loaded fine, but when it tries to access its css and js assets (the one auto generated by npm build), its getting a 404.
In the sources tab I can see that there isn’t any assets folder while the userview had a assets folder (with js and css) beside its index.html file.
Things can get tricky to build and debug if you’re trying to serve two frontends and a backend together in one project. We recommend separating each part into its own project and configuring the domain so they look like they’re all deployed as a single project.
Thank you for the response.
I did refer to that link b4, but didnt want to create another project just for it.
However I was able to successfully get it working by setting