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.
1 parent f04c6b6 commit 3353d66Copy full SHA for 3353d66
demos/middleware/middleware.ts
@@ -37,7 +37,7 @@ export async function middleware(req: NextRequest) {
37
}
38
39
if (pathname.startsWith('/request-rewrite')) {
40
- // request.rewrite() should return the MiddlewareResponse obj instead of the Response obj
+ // request.rewrite() should return the MiddlewareResponse object instead of the Response object.
41
const res = await request.rewrite('/static-rewrite')
42
const message = `This was static (& escaping test &) but has been transformed in ${req.geo?.city}`
43
0 commit comments