Skip to content

Commit

Permalink
fix: custom build dir do not need frontend and dist (#1020)
Browse files Browse the repository at this point in the history
* fix: custom build dir do not need frontend and dist

Signed-off-by: San Nguyen <[email protected]>

* fix e2e test

Signed-off-by: San Nguyen <[email protected]>

* test previous values

Signed-off-by: San Nguyen <[email protected]>

* fix tests

Signed-off-by: San Nguyen <[email protected]>

* no format index.html

Signed-off-by: San Nguyen <[email protected]>

* remove envrc

Signed-off-by: San Nguyen <[email protected]>

---------

Signed-off-by: San Nguyen <[email protected]>
  • Loading branch information
sandangel authored May 26, 2024
1 parent d19ed3c commit 4f7fb2d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/chainlit/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ def get_build_dir(local_target: str, packaged_target: str):
packaged_build_dir = os.path.join(BACKEND_ROOT, packaged_target, "dist")

if config.ui.custom_build and os.path.exists(
os.path.join(APP_ROOT, config.ui.custom_build, packaged_target, "dist")
os.path.join(APP_ROOT, config.ui.custom_build)
):
return os.path.join(APP_ROOT, config.ui.custom_build, packaged_target, "dist")
return os.path.join(APP_ROOT, config.ui.custom_build)
elif os.path.exists(local_build_dir):
return local_build_dir
elif os.path.exists(packaged_build_dir):
Expand Down

0 comments on commit 4f7fb2d

Please sign in to comment.