Skip to content

Commit

Permalink
Fix (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
Madis0 authored Jun 8, 2024
1 parent e7b6fba commit 0ef53bc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ function getName(lang) {
export default defineNuxtConfig({
devtools: { enabled: true },
modules: ['@nuxtjs/color-mode', '@nuxtjs/i18n', "@nuxt/image"],
plugins: [
{ src: '~/plugins/floating-vue.client.js', mode: 'client' }
],
ssr: true,
nitro: {
preset: 'github-pages',
},
Expand Down
9 changes: 9 additions & 0 deletions plugins/floating-vue.client.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { defineNuxtPlugin } from '#app';

export default defineNuxtPlugin((nuxtApp) => {
if (process.client) {
import('floating-vue').then((module) => {
nuxtApp.vueApp.use(module.default);
});
}
});

0 comments on commit 0ef53bc

Please sign in to comment.