Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: custom build dir do not need frontend and dist #1020

Merged
merged 6 commits into from
May 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading