Skip to content

Commit

Permalink
do not edit docs config is --docs isn't set
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed Oct 31, 2023
1 parent 518d643 commit 0d9b58a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions code/lib/core-server/src/presets/common-preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,13 @@ export const frameworkOptions = async (
export const docs = (
docsOptions: StorybookConfig['docs'],
{ docs: docsMode }: CLIOptions
): StorybookConfig['docs'] => ({
...docsOptions,
docsMode,
});
): StorybookConfig['docs'] =>
docsOptions && docsMode !== undefined
? {
...docsOptions,
docsMode,
}
: docsOptions;

export const managerHead = async (_: any, options: Options) => {
const location = join(options.configDir, 'manager-head.html');
Expand Down

0 comments on commit 0d9b58a

Please sign in to comment.