diff --git a/lib/core/src/server/build-dev.js b/lib/core/src/server/build-dev.js index c50e34c239fb..3956fc8e0725 100644 --- a/lib/core/src/server/build-dev.js +++ b/lib/core/src/server/build-dev.js @@ -8,6 +8,7 @@ import chalk from 'chalk'; import { logger, colors } from '@storybook/node-logger'; import fetch from 'node-fetch'; import Cache from 'file-system-cache'; +import findCacheDir from 'find-cache-dir'; import opn from 'opn'; import boxen from 'boxen'; import semver from 'semver'; @@ -21,6 +22,7 @@ import { getDevCli } from './cli'; const defaultFavIcon = require.resolve('./public/favicon.ico'); const cache = Cache({ + basePath: findCacheDir({ name: 'storybook' }), ns: 'storybook', // Optional. A grouping namespace for items. });