Question
App Specification to route subdomains to individual services
Can the following setup be achieved with a single App Specification file (= single App)?
single managed PostgreSQL Cluster (PCLUSTER)
example.com
is the main domain and it serves a next.js application fromproduction
it branch; it connects toapi.example.com
api.example.com
is Laravel API fromproduction
git branch; it connects toproduction
database in PCLUSTERexample-staging.com
is staging area; it runs next.js fromstaging
git branch and connects toapi.example-staging.com
api.example-staging.com
is Laravel API fromstaging
git branch; it connects tostaging
database in PCLUSTER
I am confused about how to configure the domains
top level setting and routes
per-instance settings to make this setup work. Please advise.
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.
×