SiteLinks

tcmts.site.SiteLinks · #chchw72x · term · runs on the server

uses process

The published site's link to its code browser, beside the site's name (not the app's: rel="external").

export async function SiteLinks() {
  if (process.env.TCM_SITE_VERSION === undefined) return null;
  return (
    <>
      {" "}
      <a className="home" href="code/index.html" rel="external">
        / code
      </a>
    </>
  );
}

used by