Skip to content

Commit

Permalink
perf: update to use .cache/nuxt/fonts prefix for all caches
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Mar 6, 2024
1 parent 38ac7ac commit 7b91b0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export function setupPublicAssetStrategy (options: ModuleOptions['assets'] = {})
storage: {
'data:fonts:': {
driver: 'fs',
base: 'node_modules/.cache/nuxt-fonts/data'
base: 'node_modules/.cache/nuxt/fonts/data'
}
}
} satisfies NitroConfig)
Expand Down
2 changes: 1 addition & 1 deletion src/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { Awaitable } from './types'
// TODO: refactor to use nitro storage when possible
const storage = createStorage({
driver: fsDriver({
base: 'node_modules/.cache/nuxt-fonts',
base: 'node_modules/.cache/nuxt/fonts/meta',
})
})

Expand Down

0 comments on commit 7b91b0d

Please sign in to comment.