Skip to content

Commit 7cc831d

Browse files
committed
lintfix
1 parent 62ad040 commit 7cc831d

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

examples/nuxt/nuxt.config.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
import * as dotenv from 'dotenv';
2+
23
dotenv.config({ path: '../../.env' });
34

45
// https://v3.nuxtjs.org/api/configuration/nuxt.config
6+
// eslint-disable-next-line no-undef
57
export default defineNuxtConfig({
68
target: 'static',
79
runtimeConfig: {
810
public: {
911
UB_TOKEN: process.env?.VITE_UB_TOKEN,
1012
UB_DOMAIN: process.env?.VITE_UB_DOMAIN,
11-
}
12-
}
13+
},
14+
},
1315
});

examples/nuxt/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
"postinstall": "nuxt prepare"
1111
},
1212
"dependencies": {
13-
"@userback/vue": "workspace:^"
13+
"@userback/vue": "workspace:^",
14+
"dotenv": "^16.0.3"
1415
},
1516
"devDependencies": {
16-
"dotenv": "^16.0.3",
1717
"nuxt": "3.0.0-rc.11"
1818
}
1919
}
+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
/* eslint-disable no-undef */
12
import UserbackPlugin from '@userback/vue';
23

34
export default defineNuxtPlugin((nuxtApp) => {
45
const { UB_TOKEN: token, UB_DOMAIN: domain } = useRuntimeConfig();
56
nuxtApp.vueApp.use(UserbackPlugin, { token, domain });
6-
})
7+
});

0 commit comments

Comments
 (0)