Skip to content

Open source CapCut alternative.

TypeScript

feat(site): move dev Cut data to ~/Movies/DonkeyCutDev [rebuild]

David Lec713550d4e87
diff --git a/site/.gitignore b/site/.gitignore
index 1f68472d..86e492c9 100644
--- a/site/.gitignore
+++ b/site/.gitignore
@@ -46,8 +46,9 @@ next-env.d.ts
/src/generated/prisma
-# Cut (video editor) local runtime data — per-user projects/library (plus
-# pre-scoping roots kept until a first sign-in adopts them)
+# Cut dev data lived at these paths in the checkout before the move to
+# ~/Movies/DonkeyCutDev (2026-08-07); keep ignoring them so leftover personal
+# media in older checkouts stays out of git.
/users/
/projects/
/library/
diff --git a/site/src/cut/server/dataDir.ts b/site/src/cut/server/dataDir.ts
index 65659198..eaf6f5e4 100644
--- a/site/src/cut/server/dataDir.ts
+++ b/site/src/cut/server/dataDir.ts
@@ -2,16 +2,14 @@ import os from "node:os";
import path from "node:path";
/**
- * Where Cut keeps its projects/ and library/ folders. The dev server keeps
- * them next to the checkout (cwd, gitignored). The engine binary runs as a
- * LaunchAgent whose cwd is "/", so it sets DONKEY_CUT_ENGINE and data lives in
- * the user's Movies folder, where Apple says user media belongs and where
- * Finder and other apps can reach it. DONKEY_CUT_DATA_DIR overrides both.
+ * Where Cut keeps its projects/ and library/ folders — the user's Movies
+ * folder, where Apple says user media belongs and where Finder and other apps
+ * can reach it. The packaged engine (DONKEY_CUT_ENGINE) uses DonkeyCut; the
+ * dev server uses DonkeyCutDev, so dev experiments stay clear of real
+ * projects. DONKEY_CUT_DATA_DIR overrides both.
*/
export function cutDataRoot(): string {
if (process.env.DONKEY_CUT_DATA_DIR) return process.env.DONKEY_CUT_DATA_DIR;
- if (process.env.DONKEY_CUT_ENGINE) {
- return path.join(os.homedir(), "Movies", "DonkeyCut");
- }
- return process.cwd();
+ const dir = process.env.DONKEY_CUT_ENGINE ? "DonkeyCut" : "DonkeyCutDev";
+ return path.join(os.homedir(), "Movies", dir);
}