no_version_number

This commit is contained in:
ahmed531998 2023-08-29 13:46:19 +02:00
parent bbbfd99090
commit f0fb1dd58c
2 changed files with 4 additions and 7 deletions

View File

@ -14,9 +14,6 @@ RUN rm -fr /root/.cache/*
COPY ./src ./src
COPY ./public ./public
ARG version_info
ENV REACT_APP_VERSION_INFO=${version_info}
RUN npm run build
COPY . .

View File

@ -17,10 +17,10 @@ const ChatPage = () => {
const [stat, setStat] = useState("start");
const [err, setErr] = useState("");
const version = process.env.REACT_APP_VERSION_INFO;
if (!version) {
console.info("No version information present at build time.");
}else{console.info('version: ${version}');}
//const version = process.env.REACT_APP_VERSION_INFO;
//if (!version) {
// console.info("No version information present at build time.");
//}else{console.info('version: ${version}');}
useEffect(() => {