Skip to content

fix: ignore aws.dev.* setting overrides in release builds#122

Merged
aseemxs merged 1 commit into
mainfrom
fix/dev-settings-release-gate
Jun 18, 2026
Merged

fix: ignore aws.dev.* setting overrides in release builds#122
aseemxs merged 1 commit into
mainfrom
fix/dev-settings-release-gate

Conversation

@aseemxs

@aseemxs aseemxs commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Problem

The aws.dev.* developer settings are read by DevSettings.get() regardless of build type. These settings are intended only for local development, but they are currently honored even in shipped/release builds.

Change

  • Gate DevSettings.get() so that aws.dev.* overrides are ignored in release builds, unless the developer has explicitly opted in via aws.dev.forceDevMode.
  • This makes developer-only settings inert in the marketplace build while preserving the existing forceDevMode workflow for local development.
  • Added unit tests covering release vs. non-release behavior and the forceDevMode escape hatch.

Testing

  • Added unit tests in settings.test.ts for the release-build gate.
  • Existing DevSetting tests remain valid (isReleaseVersion() is false in the test environment, so the gate is inert there).

Gate DevSettings.get() so that developer-only "aws.dev.*" overrides are
ignored in release builds unless "aws.dev.forceDevMode" is explicitly set.
These settings are intended for local development and should be inert in
the shipped extension. Adds unit tests for the release-build behavior.
@aseemxs
aseemxs requested a review from a team as a code owner June 17, 2026 22:28
@aseemxs aseemxs changed the title fix(core): ignore aws.dev.* setting overrides in release builds fix: ignore aws.dev.* setting overrides in release builds Jun 17, 2026
@aseemxs aseemxs closed this Jun 17, 2026
@aseemxs aseemxs reopened this Jun 17, 2026
@aseemxs
aseemxs merged commit 1be69ad into main Jun 18, 2026
38 of 41 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.

3 participants