feat(medusa): Improve add line item to cart perf and transaction management + clustering start command (#5701)

This commit is contained in:
Adrien de Peretti
2023-12-06 08:53:35 +01:00
committed by GitHub
parent a458cd144d
commit 6975eacb33
14 changed files with 341 additions and 147 deletions

View File

@@ -15,7 +15,9 @@ export async function build({
options,
reporting = "fancy",
}: BuildArgs) {
await createCacheDir({ appDir, plugins })
if (!process.env.PLUGIN_ADMIN_UI_SKIP_CACHE) {
await createCacheDir({ appDir, plugins })
}
const cacheDir = path.resolve(appDir, ".cache")
const entry = path.resolve(cacheDir, "admin", "src", "main.tsx")