Skip to content

Remove unused VITE_APP_MODE environment variable - #58

Merged
jonocodes merged 1 commit into
devfrom
claude/fervent-allen-bwgl3z
Jun 22, 2026
Merged

Remove unused VITE_APP_MODE environment variable#58
jonocodes merged 1 commit into
devfrom
claude/fervent-allen-bwgl3z

Conversation

@jonocodes

Copy link
Copy Markdown
Owner

Summary

Remove the vestigial VITE_APP_MODE environment variable that was set by build scripts and test mocks but never actually used by the application code. Debug behavior is now controlled exclusively by the VITE_DEBUG variable.

Changes

  • Removed VITE_APP_MODE from package.json dev:prod script (now runs standard vite dev)
  • Removed VITE_APP_MODE mock from Jest test setup (lib/__tests__/setup.js)
  • Removed VITE_APP_MODE mock from environment test mocks (lib/__tests__/__mocks__/environment.js)
  • Updated documentation to remove references to the unused variable

Details

The VITE_APP_MODE variable was previously set in development and test configurations but was never referenced by src/config/environment.ts or any application code. This cleanup simplifies the build configuration and reduces unnecessary environment variable management while maintaining all existing functionality through the VITE_DEBUG flag.

https://claude.ai/code/session_015e47SEwm82N6DWrJBXJPTq

VITE_APP_MODE was set in dev:prod script and test mocks but never read
by any application code. Removed from all three locations. Docs updated
to drop the vestigial-variable entry. Doc-consolidation audit item
checked off (SYNC_SCENARIOS* files were already in docs/).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015e47SEwm82N6DWrJBXJPTq
@netlify

netlify Bot commented Jun 22, 2026

Copy link
Copy Markdown

Deploy Preview for savrdev ready!

Name Link
🔨 Latest commit 262a886
🔍 Latest deploy log https://app.netlify.com/projects/savrdev/deploys/6a38c34cc3e2a50008f957eb
😎 Deploy Preview https://deploy-preview-58--savrdev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@jonocodes
jonocodes merged commit 3f2dfd9 into dev Jun 22, 2026
6 checks passed
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.

2 participants