refactor: add .copier-answers.yml at root + feature flags + .env.example

.copier-answers.yml (new, at repo root):
- Points to local template path (was GitLab remote)
- _commit: v0.19.0 (enables copier update)
- Reflects actual feature set: enable_cms, enable_daas, not directory/i18n/leads

web/src/beanflows/core.py:
- Added ENABLE_CMS/ENABLE_DAAS/ENABLE_DIRECTORY/ENABLE_LEADS/BUSINESS_MODEL
  to Config class (mirrors copier.yml questions for runtime feature gating)

.env.example (new, at repo root):
- Moved from web/.env.example; updated DUCKDB_PATH/SERVING_DUCKDB_PATH
  to root-relative paths (local.duckdb, analytics.duckdb)

.gitignore:
- Added web/src/beanflows/static/css/output.css (previously only in web/.gitignore)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Deeman
2026-02-27 10:25:28 +01:00
parent c4cb263f18
commit 3a8dd6ba00
4 changed files with 64 additions and 0 deletions

View File

@@ -31,6 +31,13 @@ load_dotenv(_repo_root / "web" / ".env", override=False)
class Config:
APP_NAME: str = os.getenv("APP_NAME", "BeanFlows")
SECRET_KEY: str = os.getenv("SECRET_KEY", "change-me-in-production")
# Feature flags (set at template time via copier; mirror copier.yml questions)
ENABLE_CMS: bool = True
ENABLE_DAAS: bool = True
ENABLE_DIRECTORY: bool = False
ENABLE_LEADS: bool = False
BUSINESS_MODEL: str = "saas"
BASE_URL: str = os.getenv("BASE_URL", "http://localhost:5001")
DEBUG: bool = os.getenv("DEBUG", "false").lower() == "true"