mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-30 18:16:48 +10:00
Require an env var to show default searches
This commit is contained in:
parent
669e1a7edb
commit
46a8e2bbfc
2 changed files with 3 additions and 1 deletions
|
|
@ -35,3 +35,4 @@ REACT_APP_ENV=production
|
||||||
#
|
#
|
||||||
|
|
||||||
REACT_APP_AVAILABILITY_ENABLED=true
|
REACT_APP_AVAILABILITY_ENABLED=true
|
||||||
|
REACT_APP_DEFAULT_SEARCHES_ENABLED=true
|
||||||
|
|
|
||||||
|
|
@ -283,7 +283,8 @@ const maps = {
|
||||||
|
|
||||||
// Example location can be edited in the
|
// Example location can be edited in the
|
||||||
// `default-location-searches.js` file.
|
// `default-location-searches.js` file.
|
||||||
defaults: defaultLocationSearches,
|
defaults:
|
||||||
|
process.env.REACT_APP_DEFAULT_SEARCHES_ENABLED === 'true' ? defaultLocationSearches : [],
|
||||||
},
|
},
|
||||||
|
|
||||||
// When fuzzy locations are enabled, coordinates on maps are
|
// When fuzzy locations are enabled, coordinates on maps are
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue