fix(component): storybook build config (#8247)

This commit is contained in:
forehalo 2024-09-13 11:56:25 +00:00
parent 85448e2d6b
commit 85b9f21078
No known key found for this signature in database
GPG Key ID: 56709255DC7EC728

View File

@ -54,13 +54,18 @@ export default {
],
define: {
'process.env.CAPTCHA_SITE_KEY': `"${process.env.CAPTCHA_SITE_KEY}"`,
runtimeConfig: getBuildConfig({
...Object.entries(
getBuildConfig({
distribution: 'web',
mode: 'development',
channel: 'canary',
static: false,
coverage: false,
}),
})
).reduce((envs, [key, value]) => {
envs[`BUILD_CONFIG.${key}`] = JSON.stringify(value);
return envs;
}, {}),
},
});
},