Skip to content

Commit 671f973

Browse files
committed
fix(auth): only apply ssr modules when needed
Fix #1389
1 parent 6f539d4 commit 671f973

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/nuxt/src/module.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,7 @@ export default defineNuxtModule<VueFireNuxtModuleOptions>({
155155
},
156156
})
157157

158-
// if (nuxt.options.ssr && hasServiceAccount) {
159-
if (options.auth) {
158+
if (options.auth && nuxt.options.ssr && hasServiceAccount) {
160159
// Add the session handler than mints a cookie for the user
161160
addServerHandler({
162161
route: '/api/__session',

0 commit comments

Comments
 (0)