Closed pranabdas closed 2 years ago
please test the latest canary, does it work for you?
@slorber it's working alright now. Thank you.
@slorber it's working alright now. Thank you. How do you fix the problem? I have the same problem.
@honeytidy Please use the canary release: https://docusaurus.io/community/canary
Hi, due to the number of duplicate reports on this issue I've reopened the original one. This has already been fixed and will be released soon. If you are experiencing the same, please either stay on beta.8
or use the canary release.
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
After updating to docusarus beta 9, the navbar logo image (and favicon image) is not showing up while serving the site locally. This happens with sites having
baseUrl
(other than/
). If I visithttp://localhost:3000/{baseUrl}/img/favicon.ico
, I see 404 Page Not Found. However, things seems alright while building the site.Steps to reproduce
Create a brand new site:
npx @docusaurus/init@latest init my-site classic
Set a
baseUrl
indocusaurus.config.js
, say/test/
Fire up
npm start
. This is what I see:Visit
http://localhost:3000/test/img/favicon.ico
, it gives 404 error.However,
npm run build
followed bynpm run serve
correctly shows the logo.Expected behavior
Should be able to see the logo and favicon images correctly while serving the site locally.
Actual behavior
Logo and favicon images are not available in website path.
Your environment
Reproducible demo
No response
Self-service