Css is not loading when hosting
I am trying to host a website on github but do not know why it is not hosting as it should be here is my repo link"https://github.com/TalhaMustafa1/nft-test-project.git and here is my website link" https://talhamustafa1.github.io/nft-test-project/
GitHub
GitHub - TalhaMustafa1/nft-test-project
Contribute to TalhaMustafa1/nft-test-project development by creating an account on GitHub.
DR/VRS - We Own The Night
A distributed brand of the future. Join us as we drive the Metaverse
8 Replies
provably cause you need to set a
baseURL
or something telling the deployment the root is /projectname/
not /
seems your cdn links are not working either
from where i can set baseUrl
I don't know NextJS sorry maybe someone else can help on that part or you can check the docs.
i have cloned it and i have delete all of the .js files when i open it using using liveserver on my system it works but when i deploy it .It is having issues
Because on your local dev root is
/
on github pages its projectName/
next.config.js Options: basePath
Use
basePath
to deploy a Next.js application under a sub-path of a domain.