Fixed route changes not using getUrl causing invalid url to be used when
using pathPrefix, renamed basePath to prefixPath, updated how getUrl gets the prefixPath to prevent the need for rebuilding when its changed now just requires restart
This commit is contained in:
@@ -3,7 +3,7 @@ import getUrl from '../util/getUrl'
|
||||
|
||||
export default class MyDocument extends Document {
|
||||
render() {
|
||||
const favicon = getUrl('favicon.ico')
|
||||
const favicon = getUrl('favicon.icon')
|
||||
return (
|
||||
<html>
|
||||
<Head>
|
||||
@@ -16,6 +16,11 @@ export default class MyDocument extends Document {
|
||||
<link rel="icon" href={favicon} type="image/x-icon" />
|
||||
<link rel="stylesheet" href={getUrl('/_next/static/style.css')} />
|
||||
<title>My Knowledge Base</title>
|
||||
<script
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: 'window.kbConf=' + JSON.stringify(app.get('kbConf')),
|
||||
}}
|
||||
/>
|
||||
</Head>
|
||||
<body>
|
||||
<Main />
|
||||
|
||||
Reference in New Issue
Block a user