baseurl in config (fix logo href)

This commit is contained in:
lesion 2022-06-11 11:59:06 +02:00
parent 6aaa8fa94d
commit 9a7b1f61d1
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -1,4 +1,5 @@
const config = require('./server/config.js')
config.load()
const minifyTheme = require('minify-css-string').default
const isDev = (process.env.NODE_ENV !== 'production')
@ -13,7 +14,7 @@ module.exports = {
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }
],
link: [{ rel: 'icon', type: 'image/png', href: '/logo.png' }],
link: [{ rel: 'icon', type: 'image/png', href: config.baseurl + '/logo.png' }],
script: [{ src: '/gancio-events.es.js', async: true, body: true }],
},
dev: isDev,