Spaces:
Sleeping
Sleeping
Download backend/local_mode.py from Success-dev/receipter-pro: direct link, hf CLI and curl.
- Browser
- Download file 726 Bytes
-
https://huggingface.co/spaces/Success-dev/receipter-pro/resolve/main/backend/local_mode.py
- Command line
-
hf download hf://spaces/Success-dev/receipter-pro/backend/local_mode.py
-
curl -L -o local_mode.py https://huggingface.co/spaces/Success-dev/receipter-pro/resolve/main/backend/local_mode.py
726 Bytes
| """ | |
| LOCAL_MODE gates every real-external-service call in the backend behind a local, | |
| zero-provisioning substitute — same principle as the prior single-operator build's | |
| local dev path (see the archived README in ../M8ion-archived-2026-09-23.zip for the | |
| original rationale), rebuilt fresh for the org/role model. | |
| Defaults to true: no real GCP/Firebase project has been provisioned yet (see | |
| docs/blueprint/blueprint.md and the Phase 0 brainstorm — billing isn't enabled), so | |
| local-only is the only mode that currently works. Flip to false in .env once a real | |
| Firebase project exists and backend/firestore_client.py's real branch is implemented. | |
| """ | |
| import os | |
| LOCAL_MODE = os.getenv("LOCAL_MODE", "true").lower() == "true" | |