Skip to content

feat: ✨ add rootdirectory option to configure custom public folder root for __ENV.js#193

Open
uberwild wants to merge 2 commits intoexpatfile:1.xfrom
uberwild:1.x
Open

feat: ✨ add rootdirectory option to configure custom public folder root for __ENV.js#193
uberwild wants to merge 2 commits intoexpatfile:1.xfrom
uberwild:1.x

Conversation

@uberwild
Copy link

In my case, next-runtime-env was always resolving the output path relative to process.cwd() and assuming public/ exists at that level. This caused __ENV.js to be written to the wrong location.

This merge request adds support for a new rootdirectory option to configureRuntimeEnv, allowing consumers to customize the root path where the public/__ENV.js file is written.

@coderabbitai
Copy link

coderabbitai bot commented Feb 11, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Tip

Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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