From fc0b1a8244a09a612066351091a9d945d3165f7a Mon Sep 17 00:00:00 2001 From: Boyan Bratvanov <6027160+bratvanov@users.noreply.github.com> Date: Fri, 11 Jul 2025 19:42:34 +0300 Subject: [PATCH] Workaround for static build breaking next dev server See https://github.com/Gerharddc/payload-ssg-example/issues/1 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2895403..601cf69 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "dev": "next dev", "build": "next build", - "build:static": "cross-env BUILD_MODE=static next build", + "build:static": "cross-env BUILD_MODE=static next build && touch next.config.mjs", "start": "next start", "lint": "next lint", "payload": "payload", @@ -34,4 +34,4 @@ "servor": "^4.0.2", "typescript": "^5" } -} \ No newline at end of file +}