fix(web): update env example#181
Conversation
|
@almeidazs is attempting to deploy a commit to the maxktz Team on Vercel. A member of the Team first needs to authorize it. |
📝 WalkthroughWalkthroughThe pull request adds environment variable placeholders for Resend email service integration to the example configuration file, including the API key and optional sender/recipient email addresses with inline comments describing default behavior. ChangesResend Configuration
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
apps/web/.env.example (1)
16-16: ⚡ Quick winConsider removing quotes for the empty placeholder.
In .env files, the standard practice for empty placeholders is
RESEND_API_KEY=without quotes. This avoids ambiguity and satisfies the dotenv-linter warning.✨ Proposed fix
-RESEND_API_KEY="" +RESEND_API_KEY=🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@apps/web/.env.example` at line 16, The RESEND_API_KEY placeholder in apps/web/.env.example uses quotes which can cause dotenv-linter warnings; update the RESEND_API_KEY entry (the RESEND_API_KEY key) to use an unquoted empty value (i.e., RESEND_API_KEY=) so the placeholder follows .env conventions and removes the linter warning.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@apps/web/.env.example`:
- Line 16: The RESEND_API_KEY placeholder in apps/web/.env.example uses quotes
which can cause dotenv-linter warnings; update the RESEND_API_KEY entry (the
RESEND_API_KEY key) to use an unquoted empty value (i.e., RESEND_API_KEY=) so
the placeholder follows .env conventions and removes the linter warning.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: c6a691d3-2c3c-4786-b015-60889c007690
📒 Files selected for processing (1)
apps/web/.env.example
|
closes #178 |
Summary
apps/web/.env.examplewith the env variable actually required to build and run the web appRESEND_FROM_EMAILandRESEND_TO_EMAILas optional overrides because the app provides defaults for bothWhy
The existing example file did not reflect the real env contract used by
apps/web, which made local setup unclear.Validation
bun run buildinapps/webfails withoutRESEND_API_KEYenv RESEND_API_KEY=dummy bun run buildinapps/webpassesSummary by CodeRabbit