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 from
production it branch; it connects to
api.example.com is Laravel API from
production git branch; it connects to
production database in PCLUSTER
example-staging.com is staging area; it runs next.js from
staging git branch and connects to
api.example-staging.com is Laravel API from
staging git branch; it connects to
staging 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.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $100 of credit to try our products over 60 days!