fix: resolve raw UUID in feed events for new reviews and NextAuth rou…#60
fix: resolve raw UUID in feed events for new reviews and NextAuth rou…#60MayurKharat0390 wants to merge 3 commits into
Conversation
…te compilation type error
|
@MayurKharat0390 is attempting to deploy a commit to the aditthyass' projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Hey @MayurKharat0390 , thank you for the contribution 🚀 I noticed that there are merge conflicts in this PR Please sync your branch with the latest Let me know if you need any assistance while resolving them. Thanks again for the contribution ⭐ |
# Conflicts: # src/app/api/reviews/route.ts
|
Hey @AditthyaSS, I have synced this branch with the latest
Also, I have included the missing Everything compiles successfully and is ready for your review! 🚀 |
Description
This Pull Request addresses two major backend and compilation bugs in the application:
Live Feed UUID Bug (Dynamic Entity Names in Reviews):
src/app/api/reviews/route.ts) created afeedEventwith the rawentityIdUUID string as theentityName(under the assumption that client-side enrichment would handle it). However, the client-side rendering components (FeedTickerandFeedPage) renderevent.entityNamedirectly, displaying unreadable UUIDs in the activity feed (e.g.,8fa3-4bc9... reviewed by @username).ModelorToolfrom the database prior to creating thefeedEventto retrieve the actual human-readable name, ensuring correct rendering (e.g.,v0 reviewed by @username).Next.js App Router NextAuth Compilation Failure:
route.ts) only allow standard HTTP method exports (GET,POST, etc.). ExportingauthOptionsdirectly fromsrc/app/api/auth/[...nextauth]/route.tstriggered a compilation failure during production builds.exportkeyword fromauthOptionssince it is only referenced internally in that file, resolving the build error.Verification & Build Results
npm run build.