diff --git a/keyserver/src/responders/landing-handler.js b/keyserver/src/responders/landing-handler.js --- a/keyserver/src/responders/landing-handler.js +++ b/keyserver/src/responders/landing-handler.js @@ -60,8 +60,9 @@ return assetInfo; } try { - // $FlowFixMe landing/dist doesn't always exist - const { default: assets } = await import('landing/dist/assets'); + const assets = JSON.parse( + fs.readFileSync('../landing/dist/assets.json', 'utf8'), + ); assetInfo = { jsURL: `compiled/${assets.browser.js}`, fontURLs: [googleFontsURL, iaDuoFontsURL], diff --git a/keyserver/src/responders/website-responders.js b/keyserver/src/responders/website-responders.js --- a/keyserver/src/responders/website-responders.js +++ b/keyserver/src/responders/website-responders.js @@ -82,8 +82,9 @@ return assetInfo; } try { - // $FlowFixMe web/dist doesn't always exist - const { default: assets } = await import('web/dist/assets'); + const assets = JSON.parse( + fs.readFileSync('../web/dist/assets.json', 'utf8'), + ); assetInfo = { jsURL: `compiled/${assets.browser.js}`, fontsURL: googleFontsURL,