pub async fn materialize_with_analysis(
assets: &mut DeferredAssets,
storage_config: &StorageConfig,
tracker: Option<&StatusTracker>,
mock: bool,
mock_url_prefix: Option<&str>,
) -> Result<AssetAnalysis>Expand description
Materialize assets with optional mock mode.
If mock: true: generates mock URLs without file I/O (for dry-run)
If mock: false: actually uploads to S3 (for real publish)
The mock_url_prefix is used to generate mock URLs when mock: true.
If not provided, defaults to https://mock-cdn.example.com.
For External strategy, this can use the storage’s url_prefix.
For Upload strategy (adapter-specific), adapters pass their own prefix.
Returns AssetAnalysis for UI logging.