From 7dc1c895a0022563c1bfaac56d9a0e1d71eeb7f2 Mon Sep 17 00:00:00 2001 From: Phumrapee Limpianchop Date: Mon, 13 Nov 2023 05:32:22 +0900 Subject: [PATCH] fix: default path --- .changeset/strange-starfishes-bathe.md | 5 +++++ packages/core/src/@types/Config.ts | 2 +- packages/core/src/constants/defaultConfig.ts | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/strange-starfishes-bathe.md diff --git a/.changeset/strange-starfishes-bathe.md b/.changeset/strange-starfishes-bathe.md new file mode 100644 index 0000000..4946da2 --- /dev/null +++ b/.changeset/strange-starfishes-bathe.md @@ -0,0 +1,5 @@ +--- +"@urami/core": patch +--- + +change default path to cache directory diff --git a/packages/core/src/@types/Config.ts b/packages/core/src/@types/Config.ts index 4e9fa14..ea71c46 100644 --- a/packages/core/src/@types/Config.ts +++ b/packages/core/src/@types/Config.ts @@ -8,7 +8,7 @@ export interface Config { // default domain to use if no domain is specified defaultDomain?: string - // directory to temporary store optimized images (default to .svelte-kit/images), paths will be relative to process.cwd() + // directory to temporary store optimized images (default to .urami/images), paths will be relative to process.cwd() storePath: string // cache age before it expires (in miliseconds) (defult to 7 days) diff --git a/packages/core/src/constants/defaultConfig.ts b/packages/core/src/constants/defaultConfig.ts index 03f242f..dfdceec 100644 --- a/packages/core/src/constants/defaultConfig.ts +++ b/packages/core/src/constants/defaultConfig.ts @@ -3,5 +3,5 @@ import type { Config } from '../@types/Config.js' export const defaultConfig: Config = { avif: false, ttl: 1000 * 60 * 60 * 24 * 7, - storePath: '.svelte-kit/images', + storePath: '.urami/images', }