Skip to content

Commit f28dc1b

Browse files
authored
Merge pull request #215 from American-Institutes-for-Research/HEA-454/add-default-EXPLORER_CLOUDFRONT_URL
Default for EXPLORER_CLOUDFRONT_URL - HEA-454
2 parents 1ec16a9 + 9926231 commit f28dc1b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

hea/settings/base.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,10 @@
363363

364364

365365
########## DATA EXPLORER CONFIGURATION
366-
EXPLORER_CLOUDFRONT_URL = env.str("EXPLORER_CLOUDFRONT_URL")
366+
# setting a default, so app startup doesn't fail when this variable isn't set
367+
# in services that don't use it.
368+
# It only needs an actually working upstream when the ProxyView view is invoked.
369+
EXPLORER_CLOUDFRONT_URL = env.str("EXPLORER_CLOUDFRONT_URL", default="http://localhost:3000")
367370
########## End DATA EXPLORER CONFIGURATION
368371

369372
# Allow GDAL/GEOS library path overrides to be set in the environment, for MacOS.

0 commit comments

Comments
 (0)