Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
[App Platform] Deploy multiple SPA on same app platform issue
Currently, I’m deploying my MEAN app to DO App Platform. I’ve deployed one angular static component and one expressjs server as web service component. Everything works fine, my angular component can call api from the service. But, when I add another angular static component ( which has a different route to the first angular component), I can not go to the second angular component. Every time I go to the second angular component, I get 404.
First angular component :
route : /
Output Directory : dist/abc
Second angular component :
route : /client
OutputDirectory : dist/def
express component :
route : /service
I’ve tried to add Custom Pages as index.html for the first angular component , 404 error gone but then it not gonna render the second angular component.
The first angular component serves as user site while the second angular component serves as cms site.
Can anyone help me on this please?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×