dazoapp depends on 3 external services. URLs are not centralised — there are two sources that must be kept in sync.
Key points (see Indonesian version for details):
- Frontend:
resources/js/global.js(gitignored) withenvselector - Backend: hardcoded per controller with
if (env == production)pattern in ~20 controllers - Production host for WhatsApp engine is inconsistent:
engine.dazo.idvsengine-wa.dazo.id - Two ports for the same service: Go backend (
8081/9091), Bot engine (1212/1313) - Only one service URL moved to config:
ENGINE_BOT_URLinconfig/services.php:47 - When calling a service, find a controller that already calls it and follow its pattern