Skip to content

Commit

Permalink
Fix fontawesome ssr mismatch warning.
Browse files Browse the repository at this point in the history
See FortAwesome/vue-fontawesome#394 for the details of the workaround
  • Loading branch information
FireMasterK committed Dec 18, 2023
1 parent 2f6d79b commit 637ef59
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
modules: ["@nuxt/ui"],
runtimeConfig: {
public: {
baseUrl: process.env.BASE_URL || "http://127.0.0.1:8000",
},
},
css: [
'@fortawesome/fontawesome-svg-core/styles.css'
]
});
devtools: { enabled: true },
modules: ["@nuxt/ui"],
runtimeConfig: {
public: {
baseUrl: process.env.BASE_URL || "http://127.0.0.1:8000",
},
},
css: ["@fortawesome/fontawesome-svg-core/styles.css"],
build: {
transpile: [
"@fortawesome/fontawesome-svg-core",
"@fortawesome/free-solid-svg-icons",
"@fortawesome/vue-fontawesome",
],
},
});

0 comments on commit 637ef59

Please sign in to comment.