Closed ae5au closed 2 years ago
Can't quite do this. GitHub pages does have CORS set to access-control-allow-origin = * but not for the OPTIONS method. Firefox and Safari use OPTIONS to preflight some xhr requests and fail. Chrome works, but Chrome as a requirement is not acceptable.
Did change workflow on website to just pull the DB files from db.gmrs.app and rescheduled the weekly website build process to run 1 hour later than the DB build process. While this still does have to copy the files from the site, build them into the artifact, and deploy them to GitHub Pages, it does save a lot of time over downloading flat files from the FCC and parsing them into the the DB. New process merged in #18
Might revisit using the site directly in the future if GitHub Pages changes the CORS headers served for OPTIONS method.
This would allow independent builds so that updates to the website would be faster.
Need to considering caching / cachebusting considerations.