[WEB-3991] chore: local dev improvements (#6991)

* chore: local dev improvements

* chore: pr feedback

* chore: fix setup

* fix: env variables updated in .env.example files

* fix(local): sign in to admin and web

* chore: update minio deployment to create an bucket automatically on startup.

* chore: resolve merge conflict

* chore: updated api env with live base path

---------

Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com>
Co-authored-by: pablohashescobar <nikhilschacko@gmail.com>
This commit is contained in:
Aaron Heckmann 2025-04-30 09:16:59 -07:00 committed by GitHub
parent 1e46290727
commit 28f9733d1b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 234 additions and 166 deletions

View file

@ -19,17 +19,29 @@ def base_host(request: Request | HttpRequest, is_admin: bool = False, is_space:
# Admin redirections
if is_admin:
admin_base_path = getattr(settings, "ADMIN_BASE_PATH", "/god-mode/")
if not admin_base_path.startswith("/"):
admin_base_path = "/" + admin_base_path
if not admin_base_path.endswith("/"):
admin_base_path += "/"
if settings.ADMIN_BASE_URL:
return settings.ADMIN_BASE_URL
return settings.ADMIN_BASE_URL + admin_base_path
else:
return base_origin + "/god-mode/"
return base_origin + admin_base_path
# Space redirections
if is_space:
space_base_path = getattr(settings, "SPACE_BASE_PATH", "/spaces/")
if not space_base_path.startswith("/"):
space_base_path = "/" + space_base_path
if not space_base_path.endswith("/"):
space_base_path += "/"
if settings.SPACE_BASE_URL:
return settings.SPACE_BASE_URL
return settings.SPACE_BASE_URL + space_base_path
else:
return base_origin + "/spaces/"
return base_origin + space_base_path
# App Redirection
if is_app: