export async function readConfig<T>(fileName  = 'config.json'): Promise<T> {
  const url = `${location.protocol}//${location.host}${location.pathname}${fileName}`
  return await fetch(url).then<T>((res) => res.json())
}
