diff --git a/tutoraspects/plugin.py b/tutoraspects/plugin.py index 06feecd69..0bb93102f 100644 --- a/tutoraspects/plugin.py +++ b/tutoraspects/plugin.py @@ -6,6 +6,7 @@ import random import string from glob import glob +import typing as t import bcrypt import importlib_resources @@ -440,6 +441,18 @@ ] ) + +@hooks.Filters.APP_PUBLIC_HOSTS.add() +def _aspects_public_hosts( + hosts: list[str], context_name: t.Literal["local", "dev"] +) -> list[str]: + if context_name == "dev": + hosts += ["{{ SUPERSET_HOST }}:{{ SUPERSET_PORT }}"] + else: + hosts += ["{{ SUPERSET_HOST }}"] + return hosts + + ######################################## # INITIALIZATION TASKS ########################################