oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
74.16k stars 2.77k forks source link

Next JS pages router #8518

Open MauriceArikoglu opened 9 months ago

MauriceArikoglu commented 9 months ago

What is the type of issue?

No response

What is the issue?

In https://bun.sh/guides/ecosystem/nextjs it is mentioned nextjs app router is incompatible with bun as it’s using node APIs not yet implemented.

What about the pages router? Any plans on listing the APIs so one can help implement? Is there a milestone somewhere for implementation? Next is a heavily used web framework and it surely helps bun adoption if the runtime support is worked for.

Where did you find it?

https://bun.sh/guides/ecosystem/nextjs

jdion84 commented 9 months ago

you can find the apis on the nextjs website: https://nextjs.org/docs/pages/building-your-application/routing

TheSecurityDev commented 1 month ago

Any update? I tried getting NextJS (v14.2.12) to work with Bun (v1.1.28), and it mostly worked, but the hot reloading of Next didn't work during development. It would recompile, but the changes wouldn't be reloaded.