[SOLVED] NPM Run Build- No index html? Can't load front end on domain

Hi everyone-

Iā€™m slightly newer to the dev world but i finally was able to get this ā€œconnected wallet nftsā€ backend to work. iā€™m using a github that is related to the tutorial https://www.youtube.com/watch?time_continue=4&v=V0Ury4iR0lE&embeds_euri=https%3A%2F%2Fmoralis.io%2F&feature=emb_logo

my issue is i have the backend working fine on a digital ocean droplet, but I canā€™t get my front end build to load on my namechape file manger/cpanel hosting like iā€™m used to

I run NPM RUN BUILD and get everything into my .next file and extract it in file manager as shown below. The dapp loads perfect fine if i do NPM RUN DEV and loads as i would expect on my localhost3000 but when i load the files on cpanel iā€™m not getting the page to load on my domain. I notice that there is no index html being created during the build process here

What am i missing? Thanks!

could you upload the results from the local build to that server?

I believe that is what I have done, I have all my files from the build folder uploaded to the directory of my domain in file manager

I just also tried another way and deployed via Netlify. it doesnā€™t appear to show the app/pages when done this way either. what would cause the npm run dev to work perfectly and display in my local host, but then the build command to not be crfeating the files needed to have it actually run on a website in prod?

image

here are the screenshots of it working just fine when i run npm run dev

Hi, you are using next js here. Next js needs to be hosted on a platform that supports web applications, like vercel or aws amplify.

I was ultimately able to fix this with Vercel- loaded perfectly there without any new amends. Thanks!

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.