logo
指南
配置
插件
API
教程
社区
简体中文
English
GitHub
指南
配置
插件
API
教程
社区
简体中文
English
GitHub
    logo
    命令

    文件约定

    src/

    App.[tj]sx
    entry.[tj]s
    entry.server.[tj]sx
    index.[tj]s
    routes/
    *.[server|node].[tj]sx
    */.stories.[tj]sx

    api/

    lambda/*.[tj]s
    _app.[tj]s

    server/

    index.[tj]s
    shared/

    config/

    html/
    icon/
    mock/
    public/
    upload/
    modern.config.[tj]s

    运行时

    Core

    bootstrap
    createApp
    createRoot
    render
    useLoader
    useModuleApps
    useRuntimeContext

    App

    defineConfig

    Router

    router

    Model

    Provider
    Auto actions
    connect
    createApp
    createStore
    handleEffect
    model
    useLocalModel
    useModel
    useStaticModel
    useStore

    SSR

    NoSSR
    PreRender
    renderStreaming
    renderString
    createRequestHandler

    BFF

    hook
    useContext

    Web Server

    Hook
    Middleware
    Unstable Middleware

    Utility

    CSS-In-JS API
    Head
    loadable

    _app.[tj]s#

    该文件可以为 BFF 函数添加前置中间件,详细内容参考 扩展 BFF Server。

    NOTE

    具体示例请参考 hook。

    Edit this page on GitHub
    Previous Pagelambda/*.[tj]s
    Next Pageindex.[tj]s
    ON THIS PAGE