Skip to content

Commit

Permalink
fix: default path
Browse files Browse the repository at this point in the history
  • Loading branch information
rayriffy committed Nov 12, 2023
1 parent 60ec6fc commit 7dc1c89
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/strange-starfishes-bathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@urami/core": patch
---

change default path to cache directory
2 changes: 1 addition & 1 deletion packages/core/src/@types/Config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/constants/defaultConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
}

0 comments on commit 7dc1c89

Please sign in to comment.