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:
Ichsan Kurniawan
2026-02-09 14:48:03 +07:00
parent c24838550a
commit 5cbded392a
10 changed files with 155 additions and 24 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ async function getData() {
export default async function UserPage() {
const data = await getData()
// console.log("DATA USER LENGTH :", data?.user?.length)
console.log("DATA USER LENGTH :", data?.user)
return (
<>