-
Hi, in our CRA app we were referencing environment variables inside template.html/index.html inside the script tags:
Is this still possible with Rsbuild? The above fails (process is undefined), and I also tried: If this is not supported I guess the next step is to refactor this to |
Beta Was this translation helpful? Give feedback.
Answered by
9aoy
May 21, 2024
Replies: 1 comment 2 replies
-
@goamn In rsbuild, |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
goamn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@goamn In rsbuild,
process.env
cannot be available in html template by default, but you can define some parameters via html.templateParameters.