I made a basic portfolio website using main.js It works fine on the local server but when I upload the code to GitHub and deploy it, it doesn't work.
I only see HTML and CSS files but the main.js files won't load. I even tried using gh-pages and creating a dist folder but it still doesn't work.
My console has the following error:
THREE.WebGLRenderer: A WebGL context could not be created.
How can I fix this? Here's my code