1"""Version storage for engine designs: microversions + immutable releases.
3A thin binding of :mod:`stardesign.storage` to this app's S3 environment. The
4module-level ``backend`` and ``IS_S3`` names are what the rest of this backend
7Design version history in S3 when ``ENGINE_S3_BUCKET`` is set; files on the
8``USERDATA_DIR`` volume otherwise (dev, and prod with no bucket).
13from backend
import userdata
15backend = make_backend(
17 bucket_env=
"ENGINE_S3_BUCKET",
18 prefix_env=
"ENGINE_S3_PREFIX",
19 default_prefix=
"engine",
21IS_S3 = isinstance(backend, S3Backend)