fix(frontend): reject production VITE_DEV_MODE=true (FE-01) #1192
No reviewers
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:implement
agent:implement
agent:open_issues
agent:ready
agent:research
agent:security_audit
agent:verify
architecture
backend
blocker:hybrid
blocker:launch
blocker:limit-orders
blocker:v2
block:log_only
block:security
bug
ci
contracts
correctness
deploy
dev
devops
docs
documentation
duplicate
e2e
enhancement
epic
feature
frontend
functional-completion
gas
good first issue
governance
help wanted
high-risk
hooks
hybrid
indexer
infra
infrastructure
integrators
invalid
launch-blocker
limit-orders
localnet
localterra
low priority
missing-implementation
needs-design
ops
performance
priority
high
priority
medium
product
qa
QA
question
ready
ready
research
scripts
security
security-hardening
smartcontracts
tech-debt
testing
ux
UX
v2
verification
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
code/cl8y-dex-terraclassic!1192
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/695-reject-prod-vite-dev-mode"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #695.
Summary
vite build --mode productionnow fails closed whenVITE_DEV_MODE=true, so a Coolify /.env.productionmistake cannot ship Simulated Wallet chrome ondex.cl8y.com(audit FE-01).VITE_ALLOW_DEV_MNEMONIC=local-onlydoes not bypass the flag. Development, LocalTerra, Vitest, Playwright, andvite build --mode stagingstill keepVITE_DEV_MODE=true.make verify-issue-695, docs/invariants, and the third-party playbookskills/AGENTS_FRONTEND_DEV_MODE_GUARD.md(D695-1–D695-8).Does not reopen mnemonic (#118 / #378) or WalletConnect project-id guards. Does not change CSP, WalletConnect, clickwrap, or the runtime
devWallet.tsgate.Test plan
viteConfig.build.test.ts: production +VITE_DEV_MODE=truethrows/VITE_DEV_MODE/; unset/falseloads; development/staging/serve still loadVITE_DEV_MODE=true VITE_WC_PROJECT_ID=x npx vite build --mode productionexits non-zero with Coolify /.env.productionguidancemake verify-issue-695green (retested)VITE_DEV_MODEunset (record on #695).env.developmentsets both flagsmentioned in issue #695
added 42 commits
maindb18cee3- Merge origin/main into feat/695-reject-prod-vite-dev-modeCompare with previous version
mentioned in commit
489268eb91mentioned in issue #698
mentioned in issue #699
mentioned in issue #700
mentioned in commit
ba1d41bfd5mentioned in commit
5ca6fc5a47