Use assets_DO_NOT_HARDCODE in public as well

Summary: Since ~couple of days to last week we cannot download image assets anymore from facebook.com during build, which is worked around in previous diff. This diff fixes it also in the development environment (`yarn start`)

Reviewed By: lblasa

Differential Revision: D46556075

fbshipit-source-id: ee5d912fb06d1632c41ff6d536b64a55608f5848
This commit is contained in:
Michel Weststrate
2023-06-09 04:01:17 -07:00
committed by Facebook GitHub Bot
parent 146a5cf666
commit 56694b441e
3 changed files with 10 additions and 10 deletions

View File

@@ -43,7 +43,7 @@ test('filled icons get correct URL', async () => {
} as const;
const iconUrl = getPublicIconUrl(icon);
expect(iconUrl).toBe(
'https://facebook.com/assets/?name=star&variant=filled&size=12&set=facebook_icons&density=2x',
'https://facebook.com/images/assets_DO_NOT_HARDCODE/facebook_icons/star_filled_12.png', // TODO: support density?
);
const staticPath = getRenderHostInstance().serverConfig.paths.staticPath;
const localUrl = getLocalIconUrl(icon, iconUrl, staticPath, false);