my prefect server setup prefect-metrics.waow.tech
python orchestration
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: npm install site deps before wrangler deploy

og-image.js imports workers-og which needs to be installed from
site/package.json before wrangler can bundle the functions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

+7 -1
+7 -1
flows/atlas.py
··· 72 72 "CLOUDFLARE_ACCOUNT_ID": CF_ACCOUNT_ID, 73 73 } 74 74 75 - # install node + wrangler if not already available 75 + # install node + npm if not available, then install site deps + wrangler 76 76 subprocess.run( 77 77 ["bash", "-c", 78 78 "command -v npx >/dev/null 2>&1 || " 79 79 "(apt-get update -qq && apt-get install -y -qq nodejs npm >/dev/null 2>&1)"], 80 80 env=env, capture_output=True, timeout=120, 81 + ) 82 + # install site dependencies (workers-og) and wrangler 83 + subprocess.run( 84 + ["npm", "install"], 85 + cwd=str(site_dir), 86 + env=env, capture_output=True, text=True, timeout=120, 81 87 ) 82 88 subprocess.run( 83 89 ["npm", "install", "--global", "wrangler"],