Migrated from gh pages to Netlify, but I'm only getting a blank page


My website was deployed on GitHub Pages but I want to migrate it to Netlify now.

Here’s the GitHub repo: GitHub - AnukratiMehta/portfolio-website

I followed the instructions to deploy it on Netlify and while the site is live, it’s only showing a blank page.

Here’s the name of my site: https://anukratimehta.netlify.app/

The console log throws the following errors:

Failed to load resource: the server responded with a status of 404 ()
site.webmanifest:1 Manifest: Line: 1, column: 1, Syntax error.

After going through some of the other discussions, I’ve tried changing the homepage in my package.json to “./” and adding crossorigin=“use-credentials” to my index.html file, but nothing helped.

Can you help me figure this out, please?

Can you post a screenshot of your build settings?

As far as I can tell, your build: Netlify App did not have a build command, nor did it deploy the correct files; sending the README.md and other files from the root of your repo without compiling.

As @tomrutgers has implied, it is likely that your site is missing some build settings. How do you build your site locally? if npm run build, as you configured in your last attempt, then this logline shows the problem:

…and you’ll want to set an environment variable of CI= before running the command, as mentioned here: Build troubleshooting tips | Netlify Docs

@fool Thanks! Using CI='' npm run build worked.

yay thanks for confirming you were able to solve your problem.