Skip to content

Commit

Permalink
Merge branch 'release-8-0' into icon-button
Browse files Browse the repository at this point in the history
  • Loading branch information
cdedreuille committed Oct 6, 2023
2 parents aecc130 + b8f97f0 commit 0d56d6e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/builders/builder-vite/src/vite-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ export async function commonConfig(
// If an envPrefix is specified in the vite config, add STORYBOOK_ to it,
// otherwise, add VITE_ and STORYBOOK_ so that vite doesn't lose its default.
envPrefix: userConfig.envPrefix ? ['STORYBOOK_'] : ['VITE_', 'STORYBOOK_'],
// Pass build.target option from user's vite config
build: {
target: buildProperty?.target,
},
};

const config: ViteConfig = mergeConfig(userConfig, sbConfig);
Expand Down

0 comments on commit 0d56d6e

Please sign in to comment.