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.

build: fix turbosnap rootDir

Alex Yangd50fcaa94e8a
diff --git a/apps/storybook/.storybook/main.ts b/apps/storybook/.storybook/main.ts
index 42d67843a4..5441816755 100644
--- a/apps/storybook/.storybook/main.ts
+++ b/apps/storybook/.storybook/main.ts
@@ -43,7 +43,9 @@ export default {
root: fileURLToPath(new URL('../../../', import.meta.url)),
}),
configType === 'PRODUCTION'
- ? turbosnap({ rootDir: config.root ?? process.cwd() })
+ ? turbosnap({
+ rootDir: fileURLToPath(new URL('../../../', import.meta.url)),
+ })
: null,
],
define: {