I’m a little confused as to why Netlify won’t serve my static assets, now normally to debug this issue I would build and preview my app but this works… Whats more confusing is that Github pages also deploys my app no problem, so I’m a little lost as to why Netlify won’t do the same.
The only thing that has changed between the two is the url but it serves the html so something is working.
Furthermore, the subdomain www.harry-whorlow.dev won’t redirect to the apex domain, so I feel like I’ve missed something, and my scouring of the forums so far has produced no results.
@TheAngryEnglishman This is simply due to the paths, specifically what references your project is building into the html and which folder is being deployed on Netlify.
On Github you’re deploying to: https://harry-whorlow.github.io/portfolio/
On Netlify you’re deploying to: https://harry-whorlow.dev
The file references in your index.html assume that the project is hosted in a directory of /portfolio/
Thanks, that absolutely went right over my head, but once you pointed it out it was obvious. Thank you I can’t express my gratitude enough!
on a side note:
I went with changing my Netlify publishing source to “/portfolio/” in the end as making it “/” breaks Github Pages in the same way the Netlify deploy was. Kinda obscure case, as I wanted both to be live.