Right now I am hosting an angular app which is B2C website using netlify and it’s working fine. Now I have new requirements where I have to host static pages that covers B2B details. Now I have a common landing page for B2B and B2C site from where I will redirect B2C angular app or B2B static pages.
I can build the app using netlify.toml configurations also I can see static landing page but not able to redirect to angular app’s index.html which is the entry point of my angular app.
In summary, using netlify I want to load static landing page on example.com and I want to see angular app on example.cpm/app.
I do forgot to mention in the question, my static pages and angular app are two different repositories. I want to clone angular directory as submodules. Sorry that was the biggest issue I am facing right now and I didn’t mention it in the question. First I have to solve that, then I think above link will solve my other issues.
Yes monorepo is one solution, but I don’t want to be falling into that rabbit hole. I want those repositories different for maintenance purpose. Submodule is very easy way to solve it without any cost.
Hosting static pages in angular is easy, just add it as assets. But landing page can not be served from assets as it will look like example.com/home and not example.com.
The only option remaining is incorporate that landing page into angular app as component/s. In my case it will need more efforts/cost that I can not bare now.
Thanks @tzmanics for replying! You introduced two new tools to me.
My head is just trying to getting over the ML algorithm to figure out User’s behaviour without feeding the data.
E.g. I am on a travel site for flight search and there are millions of possibilities that user can search for destinations and that data is changed in milliseconds. How can I fetch all those results at the build time?
I am curious
You’ll probably not be able to render your whole app. Maybe do something more hybrid, where most of your app is pre-rendered but still have javascript to load any dynamic content.