Hello,
I’m developing an app using the serverless framework and I would like to render a landing page on the root domain and run other lambdas functions based on path and subdomain,
let’s say I would like to use the domain foo.com
foo.com/
-> should point to handler.index (render landing page)
foo.com/welcome/
-> should point to handler.welcome
api.foo.com/*
-> should point to handler.api
I saw there is a plugin called serverless-domain-manager but from what I have read it’s only for subdomains.
Anyone have experience with root domains and subdomain under the same serverless app?
p.s. I’m using serverless-http