Skip to content

Commit 0ef53bc

Browse files
authored
Fix (#127)
1 parent e7b6fba commit 0ef53bc

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

nuxt.config.ts

+4
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ function getName(lang) {
2727
export default defineNuxtConfig({
2828
devtools: { enabled: true },
2929
modules: ['@nuxtjs/color-mode', '@nuxtjs/i18n', "@nuxt/image"],
30+
plugins: [
31+
{ src: '~/plugins/floating-vue.client.js', mode: 'client' }
32+
],
33+
ssr: true,
3034
nitro: {
3135
preset: 'github-pages',
3236
},

plugins/floating-vue.client.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { defineNuxtPlugin } from '#app';
2+
3+
export default defineNuxtPlugin((nuxtApp) => {
4+
if (process.client) {
5+
import('floating-vue').then((module) => {
6+
nuxtApp.vueApp.use(module.default);
7+
});
8+
}
9+
});

0 commit comments

Comments
 (0)