Skip to content

Commit

Permalink
Merge branch 'canary' into fix-data-url
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk authored Feb 6, 2022
2 parents 6acf0cd + 8039c6b commit 2e9ec68
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion errors/deleting-query-params-in-middlewares.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { NextResponse } from 'next/server'
export default function middleware(request: NextRequest) {
const nextUrl = request.nextUrl
nextUrl.pathname = '/dest'
return NextResponse.rewrite(url)
return NextResponse.rewrite(nextUrl)
}
```

Expand Down
5 changes: 4 additions & 1 deletion packages/create-next-app/templates/default/next.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
module.exports = {
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
}

module.exports = nextConfig

0 comments on commit 2e9ec68

Please sign in to comment.