Given that Next.js is frontend-centric and the IC supports Rust, Azle, Motoko, and Kybra for backend logic, incorporating Next.js into dfx
could bridge the gap between frontend and backend development on the IC. This would cater to projects that prefer Next.js’s robust frontend capabilities alongside the powerful backend canister implementations of the IC.
Would this be a feasible enhancement for dfx
?
4 Likes
@kpeacock how hard do you think it would be to add next.js to the default templates?
1 Like
This would be supremely useful
1 Like
Not terribly. It’s just a matter of running create-next-app
and then re-using the dfx
React frontend with it
3 Likes
it’s ok with npx create-next-app@latest.
after this, you should add dfx in package.json file.
like me.
i used this for one of my projects : mernfa.ir/nextjs-learning