mirror of
https://github.com/ichsankurnia/hats-app.git
synced 2026-12-06 20:16:30 +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:
@@ -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 (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user