Skip to content

Commit

Permalink
Use 'next/dist/compiled/undici'
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmarkbage committed May 4, 2023
1 parent bb0988e commit 63b292a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/src/server/app-render/action-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ export async function handleAction({
// React doesn't yet publish a busboy version of decodeAction
// so we polyfill the parsing of FormData.
const { Readable } = require('stream')
const UndiciRequest = require('undici').Request
const UndiciRequest = require('next/dist/compiled/undici').Request
const fakeRequest = new UndiciRequest('http://localhost', {
method: 'POST',
headers: { 'Content-Type': req.headers['content-type'] },
Expand Down

0 comments on commit 63b292a

Please sign in to comment.