globalThis.process ??= {}; globalThis.process.env ??= {};
import { c as createJsonResponse } from '../../../../chunks/apiHelpers_CD8DANYs.mjs';
import { f as fetchProps } from '../../../../chunks/fetch_C_ctcuMR.mjs';
export { r as renderers } from '../../../../chunks/_@astro-renderers_DcHY5gmj.mjs';

const prerender = false;
const GET = async ({ url }) => {
  try {
    const props = await fetchProps(url);
    const propsKey = new RegExp("Props", "i");
    const names = Object.keys(props).filter((name) => !propsKey.test(name));
    return createJsonResponse(names);
  } catch (error) {
    const details = error instanceof Error ? error.message : String(error);
    return createJsonResponse(
      { error: "Component names data not found", details },
      500
    );
  }
};

const _page = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
  __proto__: null,
  GET,
  prerender
}, Symbol.toStringTag, { value: 'Module' }));

const page = () => _page;

export { page };
