Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix: storybook build issue (#6554)

pengx179151a5d5e4da
diff --git a/tests/storybook/.storybook/main.ts b/tests/storybook/.storybook/main.ts
index 0295db780d..d78d024592 100644
--- a/tests/storybook/.storybook/main.ts
+++ b/tests/storybook/.storybook/main.ts
@@ -41,7 +41,7 @@ export default {
// disable for storybook build
runtimeConfig.enableCloud = false;
return mergeConfig<InlineConfig, InlineConfig>(config, {
- assetsInclude: ['**/*.md'],
+ assetsInclude: ['**/*.md', '**/*.zip'],
resolve: {
alias: {
// workaround for https://github.com/vitejs/vite/issues/9731
diff --git a/vitest.config.ts b/vitest.config.ts
index a2757c587b..8f96cfa2e3 100644
--- a/vitest.config.ts
+++ b/vitest.config.ts
@@ -10,7 +10,7 @@ const rootDir = fileURLToPath(new URL('.', import.meta.url));
export default defineConfig({
plugins: [react(), vanillaExtractPlugin()],
- assetsInclude: ['**/*.md'],
+ assetsInclude: ['**/*.md', '**/*.zip'],
resolve: {
alias: {
// prevent tests using two different sources of yjs