Skip to content

chore: update env vars#12210

Merged
kaladinlight merged 2 commits intodevelopfrom
env-vars
Mar 26, 2026
Merged

chore: update env vars#12210
kaladinlight merged 2 commits intodevelopfrom
env-vars

Conversation

@kaladinlight
Copy link
Copy Markdown
Contributor

@kaladinlight kaladinlight commented Mar 26, 2026

Description

  • Update env vars to official endpoints to revenue and agentic
  • Little bit of ocd sorting

Summary by CodeRabbit

  • Chores
    • Reorganized and consolidated feature flag configurations across development and production environments.
    • Updated backend service endpoint URLs for improved infrastructure routing.
    • Refined environment variable structure to streamline configuration management.

@kaladinlight kaladinlight requested a review from a team as a code owner March 26, 2026 17:36
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 26, 2026

📝 Walkthrough

Walkthrough

The pull request reorganizes environment configuration files to consolidate feature flags across development and production environments, removes several deprecated chain/provider endpoint URLs, adds new feature flags for emerging chains and features (Mantle, Ink, Cronos, TON, etc.), updates provider URLs (Abstract, SUI, TON nodes), and changes the agentic server base URL default from a Railway instance to a ShapeShift API domain.

Changes

Cohort / File(s) Summary
Environment Configuration - Feature Flags
.env, .env.development, .env.production
Reorganized and consolidated feature flag entries across environments. Removed legacy flags (BEBOP_SWAP, CHAINFLIP_LENDING, SWAPPER_RELAY, NOTIFICATIONS_WEBSERVICES, etc.) and re-added with updated/consistent values. Added new chain feature flags (MANTLE, INK, CRONOS, TON, SONIC, UNICHAIN, etc.) and product flags (YIELDS_PAGE, EARN_TAB, YIELD_MULTI_ACCOUNT, AGENTIC_CHAT, MM_NATIVE_MULTICHAIN).
Environment Configuration - Network Endpoints
.env, .env.development, .env.production
Removed numerous deprecated chain node URL variables (MONAD, PLASMA, KATANA, ETHEREAL, CELO, FLOWEVM, PLUME, STORY, ZKSYNC_ERA, BLAST, WORLDCHAIN, HEMI, SONIC, UNICHAIN, BOB, MODE, MANTLE, INK, CRONOS, MEGAETH, LINEA, BERACHAIN, SCROLL, SONEIUM, SEI, JITO, STARKNET, TRON). Added VITE_SUI_NODE_URL and VITE_TON_NODE_URL. Updated VITE_ABSTRACT_NODE_URL from empty to https://api.mainnet.abs.xyz.
Environment Configuration - Service URLs
.env, .env.development
Changed VITE_AGENTIC_SERVER_BASE_URL from Railway instance URL to https://api.agent.shapeshift.com. Updated VITE_AFFILIATE_REVENUE_URL to https://api.revenue.shapeshift.com. Removed VITE_USERBACK_TOKEN and VITE_AGENTIC_SERVER_BASE_URL from development environment.
Configuration Module
src/config.ts
Updated default value for VITE_AGENTIC_SERVER_BASE_URL validator from Railway deployment URL to https://api.agent.shapeshift.com.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Poem

🐰 Feature flags hop and play,
New chains join the fray,
Endpoints cleaned, URLs aligned,
Configuration refined,
From Railway to ShapeShift we sway!

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'chore: update env vars' is vague and overly broad. While it accurately indicates the general category (environment variables), it does not convey the meaningful intent of the change—namely, updating endpoints for 'revenue' and 'agentic' services and reorganizing feature flags across multiple environment files. Consider a more descriptive title such as 'chore: update agentic and revenue endpoint URLs' or 'chore: reorganize env vars and update service endpoints' to better communicate the primary purpose of the changeset.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch env-vars

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.env:
- Line 364: The VITE_AGENTIC_SERVER_BASE_URL value points to a non-existent
endpoint causing 404s; update the environment variable
VITE_AGENTIC_SERVER_BASE_URL to the correct, reachable Agentic server base URL
(or make it configurable via runtime config) and ensure the server exposes the
expected /api/chat path; verify by sending a GET/POST to
`${VITE_AGENTIC_SERVER_BASE_URL}/api/chat` and update any client code that
references VITE_AGENTIC_SERVER_BASE_URL to handle missing/unreachable endpoints
with a clear error or fallback.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: be8c3070-a887-4cb6-a85e-0d34cf30a650

📥 Commits

Reviewing files that changed from the base of the PR and between fe33395 and 4157136.

📒 Files selected for processing (4)
  • .env
  • .env.development
  • .env.production
  • src/config.ts

@kaladinlight kaladinlight merged commit 1989eb3 into develop Mar 26, 2026
4 checks passed
@kaladinlight kaladinlight deleted the env-vars branch March 26, 2026 18:07
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