mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-11 07:06:28 +08:00
build: fix turbosnap rootDir
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user