Schema: cache.image im Projekt und optionaler Asset-cachePath
continuous-integration/drone/push Build is passing

- project.schema.json: cache.image.{path, autoCleanup.{maxAge,maxFiles,tempMaxAge}};
  Server-only-Knöpfe (enabled, interval, Laufbudgets) sind bewusst nicht vorgesehen.
- asset.schema.json: cachePath optional, ohne Pflicht-Verzeichnis, verweist auf
  cache.image.path als Default.
- index.d.ts und Beispiel-YAML nachgezogen.
This commit is contained in:
apairon committed 2026-10-29 12:48:36 +00:00
1 parent 8ca80136f4
commit 5458214ad9
4 files changed
+57 -5

No files matched your search

Vendored
+8 -1
View File
@@ -421,7 +421,14 @@ declare global {
/** Asset image processing block (`imageProcessing`) */
export interface AssetImageProcessingConfig {
access: "public"
cachePath: string
/**
* Optional cache directory. An explicit value is project-controlled:
* relative to the project's config.yml, ".." needs
* security.allowUpperPaths, absolute needs security.allowAbsolutePaths.
* Omit to use cache.image.path (default ../cache/image).
* The project namespace is appended; the directory is created lazily.
*/
cachePath?: string
allowOriginal?: boolean
defaultFilter?: string
allowedInputTypes?: Array<"image/jpeg" | "image/png" | "image/webp">