Storage and GCP
The current stack example assumes GCS-backed storage.
Core storage variables
| Variable | Purpose |
|---|---|
STORAGE_PROVIDER | Storage backend selection; example uses gcs |
STORAGE_PROJECT_ID | GCP project that owns the bucket |
STORAGE_BUCKET_NAME | Bucket name used for persisted assets |
STORAGE_CUSTOM_DOMAIN | Optional public domain for served assets |
Companion GCP variables
GOOGLE_APPLICATION_CREDENTIALSGOOGLE_CLOUD_PROJECTGOOGLE_CLOUD_LOCATION
Setup checklist
- Create or choose the target GCP project.
- Create a Cloud Storage bucket for the stack.
- Grant the service account referenced by
GOOGLE_APPLICATION_CREDENTIALSaccess to that bucket. - Set
STORAGE_PROVIDER=gcs,STORAGE_PROJECT_ID, andSTORAGE_BUCKET_NAME.
STORAGE_CUSTOM_DOMAIN
- Leave blank during simple local stack work.
- Set this only when assets should resolve through a stable external domain.