File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,10 @@ const VueFire: NuxtModule<VueFireNuxtModuleOptions> =
94
94
95
95
// nuxt.options.build.transpile.push(templatesDir)
96
96
nuxt . options . build . transpile . push ( runtimeDir )
97
+ // FIXME: this is a workaround because of the resolve issue with firebase
98
+ // without this, we use different firebase packages within vuefire and nuxt-vuefire
99
+ nuxt . options . build . transpile . push ( 'vuefire' )
100
+ nuxt . options . build . transpile . push ( 'vuefire/server' )
97
101
98
102
if ( nuxt . options . ssr && options . admin ) {
99
103
// check the provided config is valid
Original file line number Diff line number Diff line change @@ -47,16 +47,14 @@ export default defineNuxtPlugin((nuxtApp) => {
47
47
< % } %>
48
48
49
49
<% if (options .appCheck ) { % >
50
- if (process .client ) {
51
- modules .push (VueFireAppCheck ({
52
- ... appConfig .vuefireOptions .appCheck ,
53
- provider: ' <%= options.appCheck.provider %>' === ' ReCaptchaV3'
54
- ? new ReCaptchaV3Provider (' <%= options.appCheck.key %>' )
55
- : new CustomProvider ({
56
- getToken : () => Promise .resolve ({ token: ' ' , expireTimeMillis: 1 })
57
- }),
58
- }))
59
- }
50
+ modules .push (VueFireAppCheck ({
51
+ ... appConfig .vuefireOptions .appCheck ,
52
+ provider: ' <%= options.appCheck.provider %>' === ' ReCaptchaV3'
53
+ ? new ReCaptchaV3Provider (' <%= options.appCheck.key %>' )
54
+ : new CustomProvider ({
55
+ getToken : () => Promise .resolve ({ token: ' ' , expireTimeMillis: 1 })
56
+ }),
57
+ }))
60
58
< % } %>
61
59
62
60
nuxtApp.vueApp.use(VueFire, {
You can’t perform that action at this time.
0 commit comments