mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-23 05:33:08 +03:00
fix(component): storybook build config (#8247)
This commit is contained in:
parent
85448e2d6b
commit
85b9f21078
@ -54,13 +54,18 @@ export default {
|
||||
],
|
||||
define: {
|
||||
'process.env.CAPTCHA_SITE_KEY': `"${process.env.CAPTCHA_SITE_KEY}"`,
|
||||
runtimeConfig: getBuildConfig({
|
||||
distribution: 'web',
|
||||
mode: 'development',
|
||||
channel: 'canary',
|
||||
static: false,
|
||||
coverage: false,
|
||||
}),
|
||||
...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;
|
||||
}, {}),
|
||||
},
|
||||
});
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user