no_version_number
This commit is contained in:
parent
bbbfd99090
commit
f0fb1dd58c
|
@ -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 . .
|
||||
|
|
|
@ -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(() => {
|
||||
|
|
Loading…
Reference in New Issue