mirror of
https://github.com/Nezumi-2711/onedrive-vercel-index.git
synced 2026-09-22 13:38:45 +00:00
fix: upgrade font awesome 6.0 and resolve ssr problem
This commit is contained in:
+3
-2
@@ -1,12 +1,13 @@
|
||||
import { config } from '@fortawesome/fontawesome-svg-core'
|
||||
import '@fortawesome/fontawesome-svg-core/styles.css'
|
||||
|
||||
import '../styles/globals.css'
|
||||
import '../styles/markdown-github.css'
|
||||
|
||||
// Require had to be used to prevent SSR failure in Next.js
|
||||
// Related discussion: https://github.com/FortAwesome/Font-Awesome/issues/19348
|
||||
const { library, config } = require('@fortawesome/fontawesome-svg-core')
|
||||
config.autoAddCss = false
|
||||
|
||||
import { library } from '@fortawesome/fontawesome-svg-core'
|
||||
import {
|
||||
faFileImage,
|
||||
faFilePdf,
|
||||
|
||||
Reference in New Issue
Block a user