Skip to content

fix(create-rstack): preserve Nx template dotenv precedence - #576

Open
chenjiahan wants to merge 2 commits into
mainfrom
chenjiahan/fix-nx-template-env
Open

chenjiahan wants to merge 2 commits into
mainfrom
chenjiahan/fix-nx-template-env

Conversation

@chenjiahan

@chenjiahan chenjiahan commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Motivation

Nx preloads environment files before running Rstack commands. Values from .env can therefore override mode-specific values from .env.development, .env.production, and .env.production.local.

Changes

Generate a root .env with NX_LOAD_DOT_ENV_FILES=false so Rstack loads each project's environment files with its normal mode and precedence. Document the setting and verify that the hidden file is scaffolded.

Validated development and production dotenv precedence in a fresh generated Nx project, and confirmed .env is included in the package. All 32 scaffold tests pass on this split branch.

Environment-file cache invalidation is handled separately in #577. Both PRs target main and can be merged independently.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T13:10:48.318173Z ae147e3 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Deploying rstack-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: ae147e3
Status: ✅  Deploy successful!
Preview URL: https://97a0060c.rstack-cli.pages.dev
Branch Preview URL: https://chenjiahan-fix-nx-template-e.rstack-cli.pages.dev

View logs

@chenjiahan chenjiahan changed the title fix(create-rstack): preserve Nx template environment behavior fix(create-rstack): preserve Nx template dotenv precedence Oct 16, 2026

This branch has not been deployed

No deployments
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