Skip to content

Commit

Permalink
perf: dns-prefetch
Browse files Browse the repository at this point in the history
  • Loading branch information
521xueweihan committed Oct 9, 2024
1 parent dd4d538 commit 5b2eead
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/Seo.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import Head from 'next/head';
import { useRouter } from 'next/router';

import { API_HOST } from '@/utils/api';

// !STARTERCONF Change these default meta
const defaultMeta = {
title: 'HelloGitHub',
Expand Down Expand Up @@ -115,6 +117,7 @@ export default function Seo(props: SeoProps) {

return (
<Head>
<link rel='dns-prefetch' href={API_HOST} />
<title>{`${meta.title} - HelloGitHub`}</title>
<meta name='robots' content={meta.robots} />
<meta content={meta.description} name='description' />
Expand Down
1 change: 1 addition & 0 deletions src/styles/iconfont.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
src: url('../../public/font/iconfont.woff2?t=1684124673183') format('woff2'),
url('../../public/font/iconfont.woff?t=1684124673183') format('woff'),
url('../../public/font/iconfont.ttf?t=1684124673183') format('truetype');
font-display: swap;
}

.iconfont {
Expand Down

0 comments on commit 5b2eead

Please sign in to comment.