Files
ayushya.dev/wrangler.toml
T
ayushyaandClaude Sonnet 5 abb83fe035
Deploy to Cloudflare Workers / deploy (push) Successful in 14s
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 <noreply@anthropic.com>
2026-09-17 20:51:50 -04:00

16 lines
670 B
TOML

# Cloudflare Workers config for the static portfolio site.
# Replace `name` with your existing Worker's name in the Cloudflare dashboard
# if one already exists at portfolio.ayushyamitabh.workers.dev — the name here
# determines which Worker gets deployed to.
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. 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 = "./public"
not_found_handling = "404-page"