Skip to content

Commit

Permalink
Warn for no Vue package set
Browse files Browse the repository at this point in the history
  • Loading branch information
kkaris committed Sep 27, 2024
1 parent 2ffad01 commit 893e25e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/indra_cogex/apps/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,16 @@
VUE_SRC_JS: Union[bool, str] = False
VUE_SRC_CSS: Union[bool, str] = False
else:
VUE_SRC_JS = f"{VUE_URL_ROOT}/{VUE_JS}"
VUE_SRC_CSS = f"{VUE_URL_ROOT}/{VUE_CSS}"
if not VUE_URL_ROOT:
logger.warning(
"VUE_URL_ROOT not set in environment. Statement Vue components will "
"not be available in the web app."
)
VUE_SRC_JS = False
VUE_SRC_CSS = False
else:
VUE_SRC_JS = f"{VUE_URL_ROOT}/{VUE_JS}"
VUE_SRC_CSS = f"{VUE_URL_ROOT}/{VUE_CSS}"

# Pusher parameters
pusher_app_id = get_config("CLARE_PUSHER_APP_ID")
Expand Down

0 comments on commit 893e25e

Please sign in to comment.