From e7e2042e86978e68f846ea834a76dd8db157ed42 Mon Sep 17 00:00:00 2001 From: BTekno Dev Date: Thu, 1 Jan 2026 23:42:59 +0700 Subject: [PATCH] Fix: Disable FORCE_LOCAL_MODE untuk production --- public/dashboard/js/config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/dashboard/js/config.js b/public/dashboard/js/config.js index 2e4a867..faacd73 100644 --- a/public/dashboard/js/config.js +++ b/public/dashboard/js/config.js @@ -2,7 +2,8 @@ // Konfigurasi API Base URL untuk frontend // FORCE LOCAL MODE - Set ke true untuk force menggunakan API lokal -const FORCE_LOCAL_MODE = true; // Set ke false untuk auto-detect +// IMPORTANT: Set ke false untuk production! +const FORCE_LOCAL_MODE = false; // Set ke true hanya untuk testing lokal // Auto-detect API Base URL berdasarkan hostname function getApiBaseUrl() {