From ebae5371b46706e5e6c676c0cadbe676f22d638d Mon Sep 17 00:00:00 2001 From: tiennm99 Date: Sun, 26 Apr 2026 21:27:08 +0700 Subject: [PATCH] fix(deploy): add wrangler.toml so CF Pages reads output dir from repo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CF Pages reported: Error: Output directory 'public' not found. The dashboard had defaulted to 'public' but SvelteKit adapter-static writes to its own output dir. wrangler.toml with pages_build_output_dir makes the project reproducible from git — no manual dashboard tweak required for the output path. The build command in the CF dashboard still controls how the build runs; ensure it is set to `npm run b u i l d`. --- web/wrangler.toml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 web/wrangler.toml diff --git a/web/wrangler.toml b/web/wrangler.toml new file mode 100644 index 0000000..fcb4e17 --- /dev/null +++ b/web/wrangler.toml @@ -0,0 +1,3 @@ +name = "loto" +pages_build_output_dir = "build" +compatibility_date = "2026-04-26"