I am having trouble resolving this page not found 404 error on my site that’s been deployed. It is a game build with a blockchain integration. I tried running through the steps outlined in Dennis’s post here:
with no resolution still. I am also a beginner so I recognize I could just be doing something wrong here.
After I can get this successfully deployed, next I also might need some help setting it up to connect with my server/ec2 instance on AWS so that the site can make calls to the server.
Thanks for reaching out and welcome to Netlify’s Support Forums.
Could you try removing the Build command: npm run build and see if the site deploys properly? Looks like there’s nothing to build and so the command can be removed.
@grlkrash I’m asking if after you made the configuration change, you caused a new build to run.
You could do this by pushing a new commit to the repository, or using the Netlify UI.
It’s common when people are told to adjust their configuration that they make the instructed change, but forget to trigger a new build, and then they check their site and believe nothing has changed.
But the configuration changes only take effect when a new build is run, so if you haven’t done that, you should and then report back.
Done! So I can see the beginning of the game loading, but then I’m getting this ERROR: Failed loading file ‘index.pck’
Also, the other part of the game (the web3 integration) isn’t loading up and I have an inkling of why (they are in separate folders on the GitHub repo and I can only setup one publish folder) - how can I work around this?
Once I uploaded the missing file, the game played perfectly!
Then I went in my GitHub and took all of the files out of their subfolders, re-triggered the deploy and now another 404 error. – do I need to erase the publish directory line? will it publish from my github repo as is and run through all of the files with no folder?
Also, I think only the html and on the sever side code is being read. Any fixes for this?