Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
C
cms
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Pedro-dev_2
cms
Commits
3a0bca18
Commit
3a0bca18
authored
Jun 02, 2021
by
PDuarte
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imagery on env
parent
50cf6125
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
.env
.env
+1
-0
imagery.js
src/views/assets/projectassets/card/imagery.js
+1
-1
No files found.
.env
View file @
3a0bca18
...
@@ -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"
src/views/assets/projectassets/card/imagery.js
View file @
3a0bca18
...
@@ -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
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment