Skip to content

Commit

Permalink
feat: cache default dir
Browse files Browse the repository at this point in the history
  • Loading branch information
orlando committed Oct 21, 2023
1 parent 35b9fcc commit 5ef9cdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const getCacheFolder = async (loaderOptions: LoaderOptions): Promise<string> =>
}

if (!loaderOptions.cacheFolder) {
cacheFolder = path.resolve(os.tmpdir(), 'optimized-images-loader');
cacheFolder = path.resolve(os.tmpdir(), 'next-optimized-images-loader');

if (await isValidCacheFolder(cacheFolder)) {
return cacheFolder;
Expand Down

0 comments on commit 5ef9cdd

Please sign in to comment.