import { StrictMode } from 'react'
import {
  type RenderToPipeableStreamOptions,
  renderToPipeableStream,
} from 'react-dom/server'
// import App from '../App'

export function render(_url: string, options?: RenderToPipeableStreamOptions) {
  return renderToPipeableStream(
    <StrictMode>
      {/* <App /> */}
    </StrictMode>,
    options,
  )
}


import { renderToStaticMarkup } from 'react-dom/server'
import { Rooter } from './renderer';

// 使用renderToStaticMarkup - 不会包含React内部属性，生成纯静态HTML
export const template = renderToStaticMarkup(
  <Rooter />
);

// 导出 API 路由
export { default as api } from './api';