From 30381a60e46ab63e5d61adda3e359307e7f4dc8c Mon Sep 17 00:00:00 2001 From: Daniel Jiang Date: Tue, 19 May 2026 19:42:19 +0800 Subject: [PATCH] Fix the site deployment problem MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The netlify error analysis: The problem is that base = "site/" makes the build run from the site subdirectory, and publish = "site/public" is resolved relative to the repo root as site/site/public — but Hugo outputs to site/public. Since the base is already site/, the publish path should just be public (relative to the base directory). Signed-off-by: Daniel Jiang --- netlify.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netlify.toml b/netlify.toml index ed2de9787..d270f9aba 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,7 +1,7 @@ [build] base = "site/" command = "hugo --gc --minify" - publish = "site/public" + publish = "public" [context.production.environment] HUGO_VERSION = "0.73.0"