We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 47ecf8f + 78d107f commit d47f41bCopy full SHA for d47f41b
guide/api-environment-frameworks.md
@@ -142,7 +142,7 @@ const server = await createServer({
142
createEnvironment(name, config) {
143
return createFetchableDevEnvironment(name, config, {
144
handleRequest(request: Request): Promise<Response> | Response {
145
- // handle Request and return a Response
+ // 处理请求和返回响应
146
},
147
})
148
@@ -151,7 +151,7 @@ const server = await createServer({
151
152
153
154
-// Any consumer of the environment API can now call `dispatchFetch`
+// 环境 API 的任何使用者现在都可以调用 `dispatchFetch`
155
if (isFetchableDevEnvironment(server.environments.custom)) {
156
const response: Response = await server.environments.custom.dispatchFetch(
157
new Request('/request-to-handle'),
0 commit comments