Hey All,
I did read the following post:
Last reviewed by Netlify Support - August, 2023
Netlify attempts to lookup a file based on several xor filters, and when all of these fail, we end up serving a 404 page. For example, a request made to /example/ would check /example/index.html, /example.html, /example/home.html and several other combinations (not necessarily in the same order) before hitting the 404. However, in case you were not expecting a 404 at a particular URL, you might be interested in finding out the reason and potentia…
I also downloaded the artifact after the deploy. The deployment is missing the following folders one can see in the repository: https://github.com/mechanical-ink/website/tree/main/open
The index.html
is there but neither of the two folders. This is causing a 404 when clicking on the “DevelopToolchest” link here Mechanical Ink - Open Source. Open Culture.
Not sure why those folders are being excluded from the deployment. Your assistance will be appreciated. Thanks!
Not sure if the following link is useful, but thought I would provide it:
clarnx
December 1, 2022, 11:33pm
2
Hi @schalk_neethling , thanks for the post.
Looks like you missed adding open/developer-toolchest/index.html
and open/the-mycelium-network/index.html
to your parcel build command .
Kindly change the code of your current build script in the package.json
file to the code below. Your DevelopToolchest link and any links that point to the-mycelium-network should display as expected after redeployment.
"build": "parcel build index.html open/index.html open/developer-toolchest/index.html open/the-mycelium-network/index.html"
Let me know the outcome.
Thanks.
Nice catch, @clarnx ! I guess it is time to take the plunge and switch this website to 11ty It will not be good to manage all of these entry points as they will continue to grow. Thanks so much.
1 Like
clarnx
December 2, 2022, 8:20am
4
Hello @schalk_neethling , glad I was able to help.
You can actually shorten the code to the below
"build": "parcel build index.html 'open/**/*.html'"
The glob pattern 'open/**/*.html'
will search and build all html
files in the open directory and containing sub-directories.
Hope this helps.
Thanks.
Thanks for the insightful support here, @clarnx . Happy building, @schalk_neethling
1 Like