Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions code/core/src/core-server/utils/copy-all-static-files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export async function copyAllStaticFiles(staticDirs: any[] | undefined, outputDi
}

// Storybook's own files should not be overwritten, so we skip such files if we find them
const skipPaths = ['index.html', 'iframe.html'].map((f) => join(targetPath, f));
const skipPaths = ['index.html', 'iframe.html'].map((f) => join(outputDir, f));
await cp(staticPath, targetPath, {
dereference: true,
preserveTimestamps: true,
Expand Down Expand Up @@ -62,7 +62,7 @@ export async function copyAllStaticFilesRelativeToMain(
);

const targetPath = join(outputDir, to);
const skipPaths = ['index.html', 'iframe.html'].map((f) => join(targetPath, f));
const skipPaths = ['index.html', 'iframe.html'].map((f) => join(outputDir, f));
if (!from.includes('node_modules')) {
logger.info(
`=> Copying static files: ${picocolors.cyan(print(from))} at ${picocolors.cyan(print(targetPath))}`
Expand Down
Loading