netlify-cli 17.15.4 → 17.15.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -304,7 +304,7 @@ export class FunctionsRegistry {
304
304
  const manifestEntry = (this.manifest?.functions || []).find((manifestFunc) => manifestFunc.name === func.name);
305
305
  func.buildData = {
306
306
  ...manifestEntry?.buildData,
307
- routes: manifestEntry.routes,
307
+ routes: manifestEntry?.routes,
308
308
  };
309
309
  // When we look at an unzipped function, we don't know whether it uses
310
310
  // the legacy entry file format (i.e. `[function name].mjs`) or the new