Skip to content

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

Merged
chenjiahan merged 3 commits into
mainfrom
chenjiahan/fix-nx-template-env
Oct 17, 2026
Merged

chenjiahan merged 3 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 in the template README.

Validated development and production dotenv precedence in a fresh generated Nx project, and confirmed .env is included in the package.

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: eb23e8d
Status: ✅  Deploy successful!
Preview URL: https://c407eba0.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
@chenjiahan
chenjiahan merged commit 79e2ac0 into main Oct 17, 2026
5 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/fix-nx-template-env branch October 17, 2026 08:04
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