How to deploy dapps on vercel

just saw this build by Moralis team https://www.youtube.com/watch?v=t8U7GRrlYW8&lc=UgyCuOkym3eUlYFEz_l4AaABAg.9lm7eztwh4G9lmRGkMGaYa
This dex use moralis server as backend, when I try to deploy this project on vercel, it always crashes

I think a quick way around this is to convert both the React app and the Nodejs part to a NextJs app and with this, you can get it deployed on Vercel. You can check out an example here

yes, next is a good choice, but Iโ€™m just curious about this one, still couldnโ€™t find a way to deploy for those separation frontend backend files

You will need to deploy the backend separately and the frontend separately and youโ€™ll have to make a tweak to the code to replace the http://localhost:300 with the link to the backend URL, and with that, itโ€™s gonna work as expected

how to do that? can you provide any links. thanks

1 Like