Skip to content

Commit

Permalink
fix: remove mdi for vercel build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
linicam committed Nov 2, 2024
1 parent 3141816 commit 968c77c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
4 changes: 1 addition & 3 deletions packages/front-end/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@
"react-dom": "^18.3.1",
"react-ga4": "^2.1.0",
"react-i18next": "^15.1.0",
"vite": "^5.4.10",
"@mdi/js": "^7.4.47",
"@mdi/react": "^1.6.1"
"vite": "^5.4.10"
}
}
15 changes: 8 additions & 7 deletions packages/front-end/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { mdiEmail, mdiGithub, mdiTwitter } from '@mdi/js'
import Icon from '@mdi/react'
import DarkModeIcon from '@mui/icons-material/DarkMode'
import EmailIcon from '@mui/icons-material/Email'
import GitHubIcon from '@mui/icons-material/GitHub'
import LightModeIcon from '@mui/icons-material/LightMode'
import OpenInNewIcon from '@mui/icons-material/OpenInNew'
import TwitterIcon from '@mui/icons-material/Twitter'
import {
AppBar,
Avatar,
Expand Down Expand Up @@ -346,16 +347,16 @@ const Main = () => {
href="https://github.com/AlvISsReimu"
target="_blank"
>
<Icon path={mdiGithub} size={1} />
<GitHubIcon />
</IconButton>
<IconButton
href="https://twitter.com/AlvISs_Reimu"
target="_blank"
>
<Icon path={mdiTwitter} size={1} />
<TwitterIcon />
</IconButton>
<IconButton href="mailto:alvissreimu@gmail.com">
<Icon path={mdiEmail} size={1} />
<EmailIcon />
</IconButton>
</Box>
</Box>
Expand Down Expand Up @@ -383,10 +384,10 @@ const Main = () => {
href="https://github.com/linicam"
target="_blank"
>
<Icon path={mdiGithub} size={1} />
<GitHubIcon />
</IconButton>
<IconButton href="mailto:li407017533@gmail.com">
<Icon path={mdiEmail} size={1} />
<EmailIcon />
</IconButton>
</Box>
</Box>
Expand Down
3 changes: 0 additions & 3 deletions packages/front-end/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ import { defineConfig } from 'vite'

export default defineConfig({
plugins: [react()],
ssr: {
noExternal: ['@mui/material', '@mdi/react'],
},
resolve: {
alias: {
'@shared': path.resolve(__dirname, '../../shared'),
Expand Down

0 comments on commit 968c77c

Please sign in to comment.