Commit 3a0bca18 authored by PDuarte's avatar PDuarte

imagery on env

parent 50cf6125
...@@ -2,3 +2,4 @@ SKIP_PREFLIGHT_CHECK=true ...@@ -2,3 +2,4 @@ SKIP_PREFLIGHT_CHECK=true
REACT_APP_BASENAME=/cms REACT_APP_BASENAME=/cms
REACT_APP_API="http://192.168.99.100:8001/cms" REACT_APP_API="http://192.168.99.100:8001/cms"
REACT_APP_API1="http://134.209.18.22/cmsapi" REACT_APP_API1="http://134.209.18.22/cmsapi"
IMAGERY=""http://134.209.18.22/imagery"
...@@ -19,7 +19,7 @@ const BlocoImage = ({title, img, handelImageChange}) => { ...@@ -19,7 +19,7 @@ const BlocoImage = ({title, img, handelImageChange}) => {
useEffect(() => { useEffect(() => {
if (img !== null && img !== undefined) { if (img !== null && img !== undefined) {
return setImgd(`${process.env.REACT_APP_API}/../${img}`) return setImgd(`${process.env.IMAGERY}/${img}`)
} }
}, [img]) }, [img])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment