diff --git a/src/index.ts b/src/index.ts index 25eaf86a..aab8563b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -34,7 +34,7 @@ async function getStorybookConfig (options: StorybookOptions) { } if (!options.staticDir) { - options.staticDir = path.resolve(options.rootDir, nuxt.options.dir.static) + options.staticDir = path.resolve(nuxt.options.srcDir, nuxt.options.dir.static) } const staticDir = options.staticDir.split(',').map(dir => dir.trim())