Skip to content

refactor: use envy crate for structured environment configuration#3662

Merged
yujonglee merged 2 commits intomainfrom
refactor/env-config-with-envy
Feb 5, 2026
Merged

refactor: use envy crate for structured environment configuration#3662
yujonglee merged 2 commits intomainfrom
refactor/env-config-with-envy

Conversation

@yujonglee
Copy link
Copy Markdown
Contributor

@yujonglee yujonglee commented Feb 5, 2026

Summary

  • Introduce envy crate for serde-based environment variable parsing
  • Extract environment configuration into dedicated env.rs modules for llm-proxy, transcribe-proxy, and api-subscription crates
  • Consolidate env parsing logic using serde deserialization instead of manual std::env::var calls

Important

This is a pure refactor with no behavior changes expected. All environment variables and their semantics remain identical. The change improves maintainability by centralizing env configuration in type-safe structs.

Test plan

  • Verify cargo check passes
  • Verify existing tests pass
  • Confirm environment variables are loaded correctly in deployment

Open with Devin

Extract environment configuration into dedicated `env.rs` modules for
each proxy crate (llm-proxy, transcribe-proxy, api-subscription) and
use serde deserialization via the envy crate.

This is a pure refactor with no behavior changes expected. The env
variables and their semantics remain identical.
@netlify
Copy link
Copy Markdown

netlify bot commented Feb 5, 2026

Deploy Preview for hyprnote canceled.

Name Link
🔨 Latest commit 1f83e09
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote/deploys/698462c4e5225700093fcbfd

@netlify
Copy link
Copy Markdown

netlify bot commented Feb 5, 2026

Deploy Preview for hyprnote-storybook canceled.

Name Link
🔨 Latest commit 1f83e09
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote-storybook/deploys/698462c4e5225700093fcc01

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 3 additional findings.

Open in Devin Review

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 new potential issue.

View 5 additional findings in Devin Review.

Open in Devin Review

@yujonglee yujonglee merged commit 3c9ef9f into main Feb 5, 2026
30 checks passed
@yujonglee yujonglee deleted the refactor/env-config-with-envy branch February 5, 2026 09:49
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.

1 participant