Closed elevynto closed 1 month ago
@elevynto is attempting to deploy a commit to the Elliot Team on Vercel.
A member of the Team first needs to authorize it.
Found a major issue 😅
Making the SUPABASE_SERVICE_KEY public would result in anyone being able to access everything from the database (as it overrides RLSO), so hence it must be always called from the server or an api route. Hence it must not be exposed to the public.
Could you repush your PR?
Work
This PR includes the creation of a Projects directory page with the below features:
Feat:
http://localhost:3000/projects
routeFeat: Search bar with button and press Enter submission
Feat: Dynamic filter checkbox generation based on a
string[]
propFeat: Fetch calls to the db based on a full or partial match of the query string provided
Feat: Auto fetches some verified projects on first mount
Feat: The filter tags currently don't get included in the fetch call query to the db but do get processed and console.logged for now
Feat: Created a reusable checkbox component
Fix: Added condition to set the
IMAGE_BASE_URL
to the devs db URL when set to development env because it couldn't access the images I had uploaded otherwiseFix: renamed
SUPABASE_SERVICE_KEY
to beNEXT_PUBLIC_SUPABASE_SERVICE_KEY
throughout entire codebase because otherwise it was coming up as undefined and supabase would not fetch see next documentation on thisRefactor: Created a
ProjectsGrid
component using jsx fromShowcaseGrid
so it could be reused in the new projects directoryCaveats
Recommendations
.prettier
file to the codebase this way it will help with aligning everyone's syntax styles.Video
https://github.com/user-attachments/assets/16ff1af7-ad74-4948-90be-5008b252024b