From abb83fe0359cafd7d123eee5c90f8d201e54c0a4 Mon Sep 17 00:00:00 2001 From: Ayushya Mitabh Date: Thu, 17 Sep 2026 20:51:50 -0400 Subject: [PATCH] Move site into public/ to avoid uploading node_modules as assets wrangler deploy runs npm install first, which creates node_modules at the repo root. With assets directory "." that got picked up as a static asset, including workerd's 122MB binary, exceeding the 25MiB Workers asset limit. Serving from ./public keeps node_modules out of the assets directory entirely. Co-Authored-By: Claude Sonnet 5 --- index.html => public/index.html | 0 wrangler.toml | 8 ++++---- 2 files changed, 4 insertions(+), 4 deletions(-) rename index.html => public/index.html (100%) diff --git a/index.html b/public/index.html similarity index 100% rename from index.html rename to public/index.html diff --git a/wrangler.toml b/wrangler.toml index 1e00054..9956f95 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -7,9 +7,9 @@ name = "portfolio" # Set this to the date you first deploy; Wrangler uses it to pin runtime behavior. compatibility_date = "2026-09-17" -# Serves every file in this directory as a static asset. Since index.html sits -# at the repo root, "." works; move it into e.g. "./public" and update this if -# you'd rather keep the repo root clean. +# Serves every file in this directory as a static asset. Kept in ./public +# (rather than the repo root) so that node_modules created by `npm install` +# during CI deploys is never picked up as a site asset. [assets] -directory = "." +directory = "./public" not_found_handling = "404-page"