Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Favicon not served in new project? #195

Closed
epigramengineer opened this issue Sep 24, 2023 · 2 comments
Closed

Favicon not served in new project? #195

epigramengineer opened this issue Sep 24, 2023 · 2 comments

Comments

@epigramengineer
Copy link

I'm running a new leptos project built with cargo leptos new --git https://github.com/leptos-rs/start-axum, but when I run cargo leptos watch it doesn't load the favicon on the site. Inspecting in chrome web tools "sources" tab it's not vended, though the pkg directory is.

The contents of the site appear to be built correctly.

❯ tree target/site 
target/site
├── favicon.ico
└── pkg
    ├── example.css
    ├── example.js
    └── example.wasm

Any ideas what I'm doing wrong?

@gbj
Copy link
Contributor

gbj commented Oct 27, 2023

No idea. If you load localhost:3000/favicon.ico (or whatever port you're at), does it serve the favicon? The default starter does server the file from public/favicon.ico, so not sure what you changed that stopped that from happening.

@benwis
Copy link
Collaborator

benwis commented Jan 12, 2024

Closing as stale, please open a new issue if you're still experiencing htis

@benwis benwis closed this as completed Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants