swapped docs symlink
This commit is contained in:
@@ -8,7 +8,7 @@ from pydantic_settings import BaseSettings
|
||||
from pydantic_settings import SettingsConfigDict
|
||||
|
||||
DEFAULT_ENV_FILE = Path(".env").resolve()
|
||||
_REPO_ROOT = Path(__file__).resolve().parents[2]
|
||||
DEFAULT_SITE_DIR = Path("site").resolve()
|
||||
|
||||
|
||||
class Mounts(BaseModel):
|
||||
@@ -23,17 +23,21 @@ class Settings(BaseSettings):
|
||||
env_file=DEFAULT_ENV_FILE,
|
||||
env_prefix="PERSONAL_MCP_",
|
||||
extra="ignore",
|
||||
cli_implicit_flags=True,
|
||||
)
|
||||
|
||||
debug: bool = False
|
||||
log_level: str = "info"
|
||||
mounts: Mounts = Field(default_factory=Mounts)
|
||||
site_dir: DirectoryPath = Field(default=_REPO_ROOT / "site")
|
||||
site_dir: DirectoryPath = Field(default=DEFAULT_SITE_DIR)
|
||||
host: str = "localhost"
|
||||
port: int = 8080
|
||||
reload: bool = True
|
||||
|
||||
|
||||
@cache
|
||||
def get_settings(**overrides) -> Settings:
|
||||
return Settings(**overrides)
|
||||
def get_settings(*, cli: bool = False, **overrides) -> Settings:
|
||||
return Settings(**overrides, _cli_parse_args=cli) # pyright: ignore[reportCallIssue]
|
||||
|
||||
|
||||
def refresh_settings(**overrides):
|
||||
|
||||
Reference in New Issue
Block a user