Monday, 13 March 2017

nodejs app - html title / icon only showing locally

I have setup an app with nodejs, and when I access it through localhost the title and icon is showing. However when I access it through the domain Ive connected it to it wont show. Everything else on the website is fine except the title and icon.

To connect localhost to my domain Ive used portforwarding on my router and a domainservice to setup a DNS-pointer.

The title is set with:

<head>
    <title>My title</title>
</head>

And the icon is set through serve-favicon in my config.js file

app.use(favicon(path.join(__dirname,'images','favicon.ico')));

And Ive verified the icon is in that folder, which is obvious because the icon shows locally.



via Chip

No comments:

Post a Comment