Skip to content

Commit a99d0b6

Browse files
authored
Another fix attempt (#122)
1 parent e9b8d38 commit a99d0b6

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

nuxt.config.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ function getName(lang) {
2626

2727
export default defineNuxtConfig({
2828
devtools: { enabled: true },
29-
ssr: true,
29+
plugins: [
30+
{ src: '~/plugins/floating-vue', mode: 'client' } // Load plugin only on client-side
31+
],
3032
modules: ['@nuxtjs/color-mode', '@nuxtjs/i18n', "@nuxt/image"],
3133
nitro: {
3234
preset: 'github-pages',

plugins/floating-vue.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import Vue from 'vue'
2+
import FloatingVue from 'floating-vue'
3+
import 'floating-vue/dist/style.css'
4+
5+
Vue.use(FloatingVue)

0 commit comments

Comments
 (0)