sign = (src, recordID, recordTable = 'block') => {
  if (src.startsWith('/')) src = `https://notion.so${src}`;
  if (src.includes('secure.notion-static.com')) {
    src = new URL(src);
    src = `https://www.notion.so/signed/${encodeURIComponent(
      src.origin + src.pathname
    )}?table=${recordTable}&id=${recordID}`;
  }
  return src;
}
redirect through notion to a resource's signed aws url for display outside of notion
(requires user to be signed in or content to be public)
@param src source url for file
@param {string} recordID uuidv4 record/block/file id
@param {string=} recordTable record type (default: 'block').
may also be 'collection', 'collection_view', 'space', 'notion_user', 'discussion', or 'comment'
@returns {string} url signed if necessary, else string as-is