From 1a913716a2501b5cfa22518e6eb645cc1d8884c0 Mon Sep 17 00:00:00 2001 From: Rafif Riqullah Siregar Date: Fri, 31 Jul 2026 10:09:15 +0700 Subject: [PATCH] fix(deploy): upload full .next/standalone directory in deploy-sftp.js --- scripts/deploy-sftp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/deploy-sftp.js b/scripts/deploy-sftp.js index 4fff8ec..d06340d 100644 --- a/scripts/deploy-sftp.js +++ b/scripts/deploy-sftp.js @@ -34,7 +34,7 @@ const LOCAL_ROOT = path.resolve(__dirname, '..'); // These are the minimum required for production deployment const UPLOAD_MANIFEST = [ // Next.js standalone server build output (entire .next folder with manifests and server files) - { local: '.next/standalone/.next', remote: '.next/standalone/.next', type: 'dir' }, + { local: '.next/standalone', remote: '.next/standalone', type: 'dir' }, // Next.js static assets and chunks (CRITICAL to prevent 404 chunk errors) { local: '.next/static', remote: '.next/static', type: 'dir' },