Allow REACT_APP_SITE_URL env variable
This commit is contained in:
parent
41e2bce291
commit
a1e336f474
2 changed files with 5 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -11,7 +11,7 @@ build
|
|||
|
||||
# misc
|
||||
.DS_Store
|
||||
.env
|
||||
npm-debug.log
|
||||
.env*.local
|
||||
|
||||
src/data.json
|
||||
|
|
|
|||
|
|
@ -18,3 +18,7 @@ if (module.hot) {
|
|||
}
|
||||
|
||||
registerServiceWorker()
|
||||
|
||||
if (process.env.REACT_APP_SITE_URL && 'localStorage' in window) {
|
||||
window.localStorage.setItem('netlifySiteURL', process.env.REACT_APP_SITE_URL)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue