mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 15:38:55 +01:00
Add the compiled folder to the list of directories to look through for static templates
This commit is contained in:
parent
265d2a79be
commit
c4be3b43e5
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue