feat: add S3 file upload functionality and update profile image handling

- Added @aws-sdk/client-s3 dependency for S3 interactions.
- Refactored ProfilePage to allow file uploads for avatar and header images, replacing URL inputs with file inputs.
- Implemented loading state and error handling during image uploads.
- Created new API route for handling file uploads to S3, including public URL generation.
- Enhanced RightSidebar to show loading skeleton while fetching data.
This commit is contained in:
Christopher
2026-01-22 09:36:26 -08:00
parent 1f24c3ab09
commit 6cd74e1cc2
5 changed files with 1816 additions and 15 deletions
+1
View File
@@ -14,6 +14,7 @@
"type-check": "tsc --noEmit"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.972.0",
"@upstash/redis": "^1.34.3",
"bcryptjs": "^2.4.3",
"crypto-js": "^4.2.0",