Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: add named export in next/server (#39381)
## Bug When using next/server in different environment ([vitest](https://vitest.dev/)), named import will have runtime error. ```tsx import { NextRequest } from 'next/server' // TypeError: NextRequest is not a constructor const request = new NextRequest() ``` This is conflicted with current `server.d.ts` files. ## Alternative * reverte current `server.js` to esm, them compiled it to cjs.
- Loading branch information