Skip to content

fix: remove server-side env fallback for cloudinary upload preset#111

Open
kush-mehra1 wants to merge 1 commit into
madanrajsagar:mainfrom
kush-mehra1:fix/issue-58-cloudinary-preset
Open

fix: remove server-side env fallback for cloudinary upload preset#111
kush-mehra1 wants to merge 1 commit into
madanrajsagar:mainfrom
kush-mehra1:fix/issue-58-cloudinary-preset

Conversation

@kush-mehra1

Copy link
Copy Markdown

CLOUDINARY_UPLOAD_PRESET (server-side var) was used as a fallback in frontend code. the EXPO_PUBLIC_ prefixed version gets embedded in the bundle — using a server-side fallback is wrong and confusing.

removed the server-side fallback. added a warning in .env.example that the preset is visible in the bundle and should only be an unsigned preset with upload restrictions.

Fixes #58

GSSOC 2026 contribution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cloudinary upload preset exposed in frontend bundle

2 participants