Replies: 1 comment
-
The disappointing answer is, that this is in general not possible this way. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Trying to add a custom environment variable in the Frontend that renders the build date
REACT_APP_DATE
(example).I am using
DOCKER_BUILDKIT=1 docker build -f deploy/docker/Dockerfile -t lowcoderorg/lowcoder-ce .
to build.I tried everything I could think of.
"build": "REACT_APP_DATE=2023-07-10 vite build && cp ../../VERSION ./build/VERSION"
to client/packages/lowcoder/package.jsonARG REACT_APP_DATE="2023-07-10"
before build in DockerfileAfter build I still get undefined when trying to read it
process.env.REACT_APP_DATE
.What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions