I recently tried to deploy a portfolio website to netlify after generating a build, but keep getting the below error
It worked totally fine before that. The github repo link is given below.
I am a noobie to development so pardon any mistakes in the post and please request any additional details if required.
@coderhopeful There’s a couple of things that are a bit odd in the repository.
You’ve committed your
To prevent that you can include a
.gitignore file in the root folder that contains:
package.json you have:
This will build your site as if it is being hosted in that folder, (which probably isn’t what you want).
You can remove
homepage or set it to
"/" to build for hosting at the root.
Thank you Nathan. Totally did not notice I committed both the node_modules and build folder somehow. Normally the gitignore file is created on its own so I wonder why it was not. Anyway it works fine now Cheers!
Thanks for the debugging tips @nathanmartin! Glad everything is working now, @coderhopeful