build: fix generate-assets.mjs

(cherry picked from commit 39704bc812)
This commit is contained in:
himself65
2023-06-13 14:12:08 +08:00
committed by Alex Yang
parent 6c63fcdbc7
commit 3c5c6ef4e6
+2 -2
View File
@@ -46,8 +46,8 @@ cd(repoRootDir);
// step 2: build web (nextjs) dist
if (!process.env.SKIP_WEB_BUILD) {
process.env.ENABLE_LEGACY_PROVIDER = 'false';
await $`yarn build`;
await $`yarn export`;
await $`yarn nx build @affine/web`;
await $`yarn nx export @affine/web`;
// step 1.5: amend sourceMappingURL to allow debugging in devtools
await glob('**/*.{js,css}', { cwd: affineWebOutDir }).then(files => {