Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -359,12 +359,12 @@ VITE_FEATURE_TON=true
VITE_FEATURE_EARN_TAB=true

# Across Protocol
VITE_FEATURE_ACROSS_SWAP=false
VITE_FEATURE_ACROSS_SWAP=true
VITE_ACROSS_API_URL=https://app.across.to/api
VITE_ACROSS_INTEGRATOR_ID=

# deBridge DLN
VITE_FEATURE_DEBRIDGE_SWAP=false
VITE_FEATURE_DEBRIDGE_SWAP=true
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "Scanning .env variants for Across/deBridge feature flags..."
fd -HI '^\.env(\..+)?$' | while read -r f; do
  rg -n '^(VITE_FEATURE_ACROSS_SWAP|VITE_FEATURE_DEBRIDGE_SWAP)=' "$f" || true
done

echo
echo "Expected: only .env contains these keys (set to true), and .env.* files contain no entries for them."

Repository: shapeshift/web

Length of output: 359


Remove VITE_FEATURE_ACROSS_SWAP and VITE_FEATURE_DEBRIDGE_SWAP from mode-specific .env.* files.

These flags are now globally enabled in .env (lines 362, 367) but still exist in .env.development or .env.production (lines 150, 152). Following the project convention, remove them from mode-specific env files to avoid redundant overrides.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.env at line 367, Remove the redundant mode-specific environment variable
entries for VITE_FEATURE_ACROSS_SWAP and VITE_FEATURE_DEBRIDGE_SWAP: since these
flags are already defined globally (VITE_FEATURE_ACROSS_SWAP and
VITE_FEATURE_DEBRIDGE_SWAP present in the main .env), open the environment files
for specific modes and delete any lines that set VITE_FEATURE_ACROSS_SWAP or
VITE_FEATURE_DEBRIDGE_SWAP so the global values are authoritative and no
mode-specific overrides remain.

VITE_DEBRIDGE_API_URL=https://dln.debridge.finance/v1.0

# Userback feedback widget
Expand Down