You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
webmanifest file not served from /public folder
#3225
Hello there,
I was wondering if it's normal that when I put a .manifest file inside the public directory, it is not served (404) when I visit https://example.com/site.webmanifest ?
I noticed the file is correctly served in dev mode, but not in production.
Other assets like images, fonts are correctly served from the public folder.
I can make it work with a static import in links() :
import manifest from '~/assets/site.webmanifest';
export function links() {
return [{rel: 'manifest', href: manifest}];
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hello there,
I was wondering if it's normal that when I put a .manifest file inside the public directory, it is not served (404) when I visit https://example.com/site.webmanifest ?
I noticed the file is correctly served in dev mode, but not in production.
Other assets like images, fonts are correctly served from the public folder.
I can make it work with a static import in links() :
Thanks in advance !
All reactions