Skip to content

Commit 024b883

Browse files
fix: ci failure by adding legacy-peer-deps and removing placement mode
* Fix the CI failure by passing the `--legacy-peer-deps` flag to the npm install * Prevent Cloudflare Workers Builds CI check failures by removing the placement mode. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
1 parent f5fdaec commit 024b883

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

wrangler.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ compatibility_flags = ["nodejs_compat"]
99
# Installs frontend deps and builds the SPA so frontend/build exists before
1010
# `wrangler deploy` uploads assets. NODE_OPTIONS is required for
1111
# react-scripts 5.x + Node 18+ (webpack 4 OpenSSL 3.0 compatibility).
12-
command = "cd frontend && npm install --include=dev && GENERATE_SOURCEMAP=false CI=false NODE_OPTIONS=--openssl-legacy-provider npm run build"
12+
command = "cd frontend && npm install --include=dev --legacy-peer-deps && GENERATE_SOURCEMAP=false CI=false NODE_OPTIONS=--openssl-legacy-provider npm run build"
1313

1414
# ─── Static Assets (React SPA build output) ──────────────────────────────────
1515
# Built by `npm run build` (root package.json) before every `wrangler deploy`.
@@ -20,10 +20,6 @@ command = "cd frontend && npm install --include=dev && GENERATE_SOURCEMAP=false
2020
directory = "frontend/build"
2121
binding = "ASSETS"
2222

23-
# ─── Placement ───────────────────────────────────────────────────────────────
24-
[placement]
25-
mode = "smart"
26-
2723
# ─── Production environment (yennefer.quest) ─────────────────────────────────
2824
# BACKEND_URL is set as a Cloudflare Worker secret (not a plain var) so it
2925
# stays encrypted and is never committed to source:

0 commit comments

Comments
 (0)