yari icon indicating copy to clipboard operation
yari copied to clipboard

fix: fallback to find images in content

Open yin1999 opened this issue 2 years ago • 0 comments

Summary

Fixes #5652.

Solution

To fallback to serve images which is not in translated-content but in content:

  1. find all images which in content repo but not in translated-content repo (only match names), and write to fallback-paths.json
  2. in aws lambda request handler, check if the requested file is only in content repo. If so, then rewrite the request uri to /en-us/.

How did you test this change?

I've run the build.js locally, there are about 18000 fallback paths now.

yin1999 avatar Jun 30 '22 11:06 yin1999