mathdroid / covid-19-api

COVID-19 global data (from JHU CSSE for now) as-a-service
https://covid19.mathdro.id
1.36k stars 284 forks source link

Fix /api/countries/[country]/og Does not work when window 64 bit install Chrome 64 bit #483

Closed zeotuan closed 3 years ago

zeotuan commented 3 years ago

what?

pull request fixes for #461

why?

  1. it seemed that exePath in util/options does not include cases when chrome 64bit is install in window 64
  2. util/template.ts regularInter refer to path outside of project directory

how?

  1. add check for window64 and path to chrome.exe
  2. change path of regularInter in util/template.ts to point to fonts directory inside the project

sreenshot

after fixes on window 64 with chrome 64 installation image

close #461

vercel[bot] commented 3 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/mathdroid/covid19/BC6e2P6qgMDPPEz89fpdrSUfNx8r
✅ Preview: https://covid19-git-fork-zeotuan-master-mathdroid.vercel.app