Skip to content

Commit 020b88e

Browse files
committed
refactor: remove unused add function and related tests; update profile photo handling
- Deleted the `add` function and its test from the main script. - Updated `ProfilePageAside`, `UserArticleFeed`, and other components to use `getFileUrl` for profile photo URLs. - Changed profile photo field names in user models and inputs for consistency. - Enhanced the `GeneralForm` to handle profile photo uploads with improved file handling. - Updated the `ImageDropzoneWithCropper` component to work with the new file structure and handle uploads correctly.
1 parent 46be810 commit 020b88e

File tree

16 files changed

+63
-1245
lines changed

16 files changed

+63
-1245
lines changed

next.config.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ const nextConfig = {
4141
protocol: "https",
4242
hostname: "api.dicebear.com",
4343
},
44+
{
45+
protocol: "https",
46+
hostname: "cdn.techdiary.dev",
47+
},
4448
],
4549
},
4650
};

scripts/batch-profilephoto-update.ts

Lines changed: 0 additions & 57 deletions
This file was deleted.

scripts/deno.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)