Sync Strapi admin with a list of available icons to use in an enumerator field

I figured this out on my own!

  1. In the frontend, add a script that generates a JSON file containing an array of icon keys in the public directory
  2. add script to package.json as its own script, and add it to the yarn build script
  3. I’m using Next.js so I added an api route to fetch the JSON file
  4. add customField to Strapi admin
  5. In custom field, fetch the JSON and map the results as select field options