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

文件约定

src/

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

api/

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

server/

index.[tj]s
shared/

config/

html/
favicon.*
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

html/#

通过 config/html 目录可以在内部默认 html 模板的不同位置注入自定义的 html 片段。

具体使用方式请参考: 自定义 HTML

Edit this page on GitHub
Previous Pageshared/
Next Pagefavicon.*