Skip to content

Commit 5900182

Browse files
committed
refactor: simplify plugin template
1 parent fb3015b commit 5900182

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

packages/nuxt/templates/plugin.ejs

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,11 @@ import {
22
VueFire,
33
useSSRInitialState,
44
} from 'vuefire'
5-
import {
6-
defineNuxtPlugin,
7-
useAppConfig,
8-
} from '#app'
9-
import {
10-
connectFirestoreEmulator,
11-
getFirestore,
12-
} from 'firebase/firestore'
13-
import {
14-
connectDatabaseEmulator,
15-
getDatabase,
16-
} from 'firebase/database'
5+
import { defineNuxtPlugin } from '#app'
176

187
export default defineNuxtPlugin((nuxtApp) => {
19-
const appConfig = useAppConfig()
20-
218
const firebaseApp = nuxtApp.$firebaseApp
229

23-
// TODO: emulator option
24-
// connectFirestoreEmulator(getFirestore(firebaseApp), 'localhost', 8080)
25-
// connectDatabaseEmulator(getDatabase(firebaseApp), 'localhost', 8081)
26-
2710
nuxtApp.vueApp.use(VueFire, { firebaseApp })
2811

2912
<% if(options.ssr) { %>

0 commit comments

Comments
 (0)