From ed200431f2e58ea2183257076a6066b23c436fbb Mon Sep 17 00:00:00 2001 From: Chris Wanstrath <2+defunkt@users.noreply.github.com> Date: Mon, 2 Feb 2026 16:09:55 -0800 Subject: [PATCH] skip node_modules when copying --- src/server/api/sync.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/server/api/sync.ts b/src/server/api/sync.ts index 656e415..bb58536 100644 --- a/src/server/api/sync.ts +++ b/src/server/api/sync.ts @@ -158,7 +158,10 @@ router.post('/apps/:app/deploy', c => { const currentReal = existsSync(currentLink) ? realpathSync(currentLink) : null if (currentReal) { - cpSync(currentReal, newVersion, { recursive: true }) + cpSync(currentReal, newVersion, { + recursive: true, + filter: (src) => !src.split('/').includes('node_modules'), + }) } else { // First deployment - create directory mkdirSync(newVersion, { recursive: true })