Route server requests through local API

Use BASE_URL_API_LOCAL_SERVER for server-side data requests and load the layout session through the cached helper. Update production URLs to HTTPS and use 127.0.0.1 for local API endpoints.
This commit is contained in:
Ichsan Kurniawan
2026-11-10 17:23:53 +07:00
parent b329a89f2d
commit aa99536a32
5 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
BASE_PATH = ""
NEXT_PUBLIC_APP_URL="https://dev-hats.hisnutech.my.id"
BASE_URL_API_LOCAL_SERVER = http://localhost:7004/api/v1
BASE_URL_API_LOCAL_SERVER = http://127.0.0.1:7004/api/v1
BASE_URL_API = https://api-hats-dev.hisnutech.my.id/api/v1
BASE_URL_IMG = https://api-hats.hisnutech.my.id/