Skip to content

Commit

Permalink
fix: use staticPath to favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
solufa committed Dec 9, 2023
1 parent 87955a3 commit 5d0cff2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
"source.fixAll.stylelint": true
"source.fixAll.eslint": "explicit",
"source.fixAll.stylelint": "explicit"
},
"[prisma]": {
"editor.defaultFormatter": "Prisma.prisma"
Expand Down
3 changes: 2 additions & 1 deletion client/src/pages/_document.page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { APP_TITLE } from 'commonConstantsWithClient';
import { Head, Html, Main, NextScript } from 'next/document';
import { staticPath } from 'src/utils/$path';
import { GA_ID } from 'src/utils/gtag';

function Document() {
Expand All @@ -9,7 +10,7 @@ function Document() {
<title>{APP_TITLE}</title>
<meta name="robots" content="noindex,nofollow" />
<meta name="description" content={APP_TITLE} />
<link rel="icon" href="favicon.png" />
<link rel="icon" href={staticPath.favicon_png} />
<script async src={`https://www.googletagmanager.com/gtag/js?id=${GA_ID}`} />
<script
dangerouslySetInnerHTML={{
Expand Down

0 comments on commit 5d0cff2

Please sign in to comment.