From aa0c584cdb7d5878a4a137f3266160e1a87d6942 Mon Sep 17 00:00:00 2001 From: ArmoryNode <22787155+ArmoryNode@users.noreply.github.com> Date: Thu, 23 Jan 2025 15:11:25 -0800 Subject: [PATCH] Fixed site headers for cloudflare pages --- publish.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/publish.ts b/publish.ts index f1a121d..9150d0b 100644 --- a/publish.ts +++ b/publish.ts @@ -12,6 +12,9 @@ async function publish() { await fs.copy("./functions", "./dist/functions", { overwrite: true }); await fs.copy("./wrangler.toml", "./dist/wrangler.toml", { overwrite: true }); + // Move _headers to the root of dist + await fs.move("./dist/static/_headers", "./dist/_headers"); + console.log("✅ Publish complete!"); }