File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
1
import { Image } from " #/components/Image" ;
2
2
import { Warning } from " #/components/Callout" ;
3
+ import { PUBLIC_URL } from " #/constants" ;
3
4
4
5
<p align = " center" >
5
- <Image src = " /logo.svg" alt = " logo" width = " 150" height = " 150" />
6
+ <Image src = { ` ${ PUBLIC_URL } /logo.svg` } alt = " logo" width = " 150" height = " 150" />
6
7
</p >
7
8
8
9
<h1 align = " center" alt = " title" >
Original file line number Diff line number Diff line change 1
- /* eslint-disable @typescript-eslint/no-unsafe-assignment */
2
1
import Image from "next/image" ;
3
2
import { useRouter } from "next/router" ;
4
3
import type { DocsThemeConfig } from "nextra-theme-docs" ;
5
4
import { match , P } from "ts-pattern" ;
6
5
7
6
import { PUBLIC_URL } from "#/constants" ;
8
7
9
- import logo from "./assets/logo.svg" ;
10
-
11
8
export default {
12
9
docsRepositoryBase : "https://github.com/eslint-react/eslint-react/tree/main/website" ,
13
10
sidebar : {
@@ -51,11 +48,12 @@ export default {
51
48
sizes = "16x16"
52
49
href = { `${ PUBLIC_URL } /favicon-16x16.png` }
53
50
/>
51
+ < link rel = "preconnect" href = "https://cdn.jsdelivr.net" />
54
52
</ >
55
53
) ,
56
54
logo : (
57
55
< div className = "w-24" >
58
- < Image src = { logo } width = "48" height = "48" alt = "eslint-react" />
56
+ < Image src = { ` ${ PUBLIC_URL } / logo.svg` } width = "48" height = "48" alt = "eslint-react" />
59
57
</ div >
60
58
) ,
61
59
project : {
You can’t perform that action at this time.
0 commit comments