message: fix(lambda-at-edge): add new defaults trailingSlash=true redirect regex formats to remove to prevent redirect loop
diff: @@ -22,7 +22,7 @@ export function isTrailingSlashRedirect(
  ) {
  if (basePath !== "") {
  return (
  - redirect.statusCode === 308 &&
  + (redirect.statusCode === 308 &&
  ((redirect.source === `${basePath}` &&
  redirect.destination === `${basePath}/`) ||
  (redirect.source === `${basePath}/` &&
  @@ -32,18 +32,31 @@ export function isTrailingSlashRedirect(
  (redirect.source === `${basePath}/:file((?:[^/]+/)*[^/]+\\.\\w+)/` &&
  redirect.destination === `${basePath}/:file`) ||
  (redirect.source === `${basePath}/:notfile((?:[^/]+/)*[^/\\.]+)` &&
  - redirect.destination === `${basePath}/:notfile/`))
  + redirect.destination === `${basePath}/:notfile/`))) ||
  + (redirect.source ===
  + `${basePath}/:file((?!\\.well-known(?:/.*)?)(?:[^/]+/)*[^/]+\\.\\w+)/` &&
  + redirect.destination === `${basePath}/:file`) ||
  + (redirect.source ===
  + `${basePath}/:notfile((?!\\.well-known(?:/.*)?)(?:[^/]+/)*[^/\\.]+)` &&
  + redirect.destination === `${basePath}/:notfile/`)
  );
  } else {
  return (
  - redirect.statusCode === 308 &&
  - ((redirect.source === "/:path+/" && redirect.destination === "/:path+") ||
  + (redirect.statusCode === 308 &&
  + ((redirect.source === "/:path+/" &&
  + redirect.destination === "/:path+") ||
  (redirect.source === "/:path+" &&
  redirect.destination === "/:path+/") ||
  (redirect.source === "/:file((?:[^/]+/)*[^/]+\\.\\w+)/" &&
  redirect.destination === "/:file") ||
  (redirect.source === "/:notfile((?:[^/]+/)*[^/\\.]+)" &&
  - redirect.destination === "/:notfile/"))
  + redirect.destination === "/:notfile/"))) ||
  + (redirect.source ===
  + "/:file((?!\\.well-known(?:/.*)?)(?:[^/]+/)*[^/]+\\.\\w+)/" &&
  + redirect.destination === "/:file") ||
  + (redirect.source ===
  + "/:notfile((?!\\.well-known(?:/.*)?)(?:[^/]+/)*[^/\\.]+)" &&
  + redirect.destination === "/:notfile/")
  );
  }
  }
  