mirror of
https://github.com/ichsankurnia/hats-app.git
synced 2026-12-06 16:56:29 +00:00
Add server API helper, logging & misc updates
Introduce a reusable serverApiCall helper and file-based logger (lib/server-api.ts, lib/logger.ts) to centralize backend requests, attach session auth, and capture request/response/error logs. Update server actions to use the new helper (updateProfileAction, changeAvatarAction) and ensure profile revalidation. Add client-side avatar upload size limit (5MB) and normalize avatar base64 payload. Add new OpenGraph/Twitter images, bump app version to v1.1.1, and add a v1.1.1 entry in release notes. Update default API/IMG env URLs and metadataBase fallback, fix minor release-notes link capitalization, and adjust a debug console.log in admin user page.
This commit is contained in:
+3
-3
@@ -6,8 +6,8 @@ NEXT_PUBLIC_APP_URL="http://localhost:1209"
|
||||
|
||||
# BASE_URL_API = https://his.nutech-integrasi.com/presence-api/api/v1
|
||||
# BASE_URL_IMG = https://his.nutech-integrasi.com/presence-api/
|
||||
BASE_URL_API = https://36.66.3.44/presence-api/api/v1
|
||||
BASE_URL_IMG = https://36.66.3.44/presence-api/
|
||||
BASE_URL_API = https://api-hats.hisnutech.my.id/api/v1
|
||||
BASE_URL_IMG = https://api-hats.hisnutech.my.id/
|
||||
|
||||
NEXTAUTH_URL = http://localhost:1209
|
||||
# NEXTAUTH_URL = http://localhost:7090/super-apps/api/auth
|
||||
@@ -19,4 +19,4 @@ FIREBASE_APP_ID = "1:422528660020:web:db16e1cba4d357e32f1061"
|
||||
DEVICE_CODE = "40001"
|
||||
NEXT_PUBLIC_HATS_SUPPORT_NAME = "Amalia"
|
||||
NEXT_PUBLIC_HATS_SUPPORT_PHONE = "6285214074002"
|
||||
NEXT_PUBLIC_APP_VERSION = "v1.1.0"
|
||||
NEXT_PUBLIC_APP_VERSION = "v1.1.1"
|
||||
Reference in New Issue
Block a user