.6/graphiql.min.js"
      integrity="sha256-eNxH+Ah7Z9up9aJYTQycgyNuy953zYZwE9Rqf5rH+r4="
      crossorigin="anonymous"
    ></script>
    <script>
      (async () => {
        let basePath;

        // get basePath
        const pathname = window.location.pathname;
        if (pathname.includes('/proxy/')) {
          const m = pathname.match(/^(.*?)\/proxy\//);
          if (m) basePath = m[0];
        } else {
          basePath = '/';
        }

        // get graphql endpoint
        const graphqlEndpo