Add the compiled folder to the list of directories to look through for static templates

This commit is contained in:
sabaimran 2024-08-06 14:50:44 +05:30
parent 265d2a79be
commit c4be3b43e5
2 changed files with 2 additions and 1 deletions

View file

@ -14,7 +14,7 @@ from khoj.utils.rawconfig import GithubContentConfig, GithubRepoConfig
# Initialize Router
web_client = APIRouter()
templates = Jinja2Templates([constants.web_directory, constants.next_js_directory])
templates = Jinja2Templates([constants.web_directory, constants.next_js_directory, constants.pypi_static_directory])
# Create Routes

View file

@ -3,6 +3,7 @@ from pathlib import Path
app_root_directory = Path(__file__).parent.parent.parent
web_directory = app_root_directory / "khoj/interface/web/"
next_js_directory = app_root_directory / "khoj/interface/built/"
pypi_static_directory = app_root_directory / "khoj/interface/compiled/"
empty_escape_sequences = "\n|\r|\t| "
app_env_filepath = "~/.khoj/env"
telemetry_server = "https://khoj.beta.haletic.com/v1/telemetry"