Next.js with Deno v2
Published ....
Last modified ....
Share this post on BlueskySee discussion on Bluesky
Deno, an alternative runtime to Node and Bun, is about to release it's v2 version (it's available now as a release candidate, and you can upgrade to it via deno upgrade rc).
Along with several other changes, this new release should now support various frameworks that previously either didn't work at all or only barely worked in some cases. Fortunately this now means that we should be able to use Next.js with Deno!
I tried this out earlier today with the latest release candidate for v2, and got it mostly working.
Steps:
- Install Deno if you don't have it installed already
I'd recommend following the docs here to install Deno on your system: https://deno.com/
- Upgrade to the
rcversion
deno upgrade rc
Don't worry - you should be able to downgrade to the stable release by running deno upgrade (without the rc flag) and it will go back to the 1.46.x release.
- Init a new Next.js app
You probably could migrate an existing app - but in this case I just spun up a new one: