A platform for community discussion. Free, open, simple.
DEV: Use correct vendor file when using ember-cli proxy in prod mode (#25224)
David Taylora15399fceae3
diff --git a/app/assets/javascripts/bootstrap-json/index.js b/app/assets/javascripts/bootstrap-json/index.jsindex f4aee92f832..bc27cac3739 100644--- a/app/assets/javascripts/bootstrap-json/index.js+++ b/app/assets/javascripts/bootstrap-json/index.js@@ -38,6 +38,12 @@ function updateScriptReferences({if (!chunks) {if (distAssets.has(`${entrypointName}.js`)) {chunks = [`assets/${entrypointName}.js`];+ } else if (entrypointName === "vendor") {+ // support embroider-fingerprinted vendor when running with `-prod` flag+ const vendorFilename = [...distAssets].find((key) =>+ key.startsWith("vendor.")+ );+ chunks = [`assets/${vendorFilename}`];} else {// Not an ember-cli asset, do not rewritereturn;