We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b18f8f commit acfe7f1Copy full SHA for acfe7f1
src/runtime/router.ts
@@ -1,13 +1,18 @@
1
import { createRouter, createWebHistory, createMemoryHistory } from '@ionic/vue-router'
2
3
import { defineNuxtPlugin, useRuntimeConfig } from '#imports'
4
-// @ts-expect-error Virtual module generated by Nuxt
+
5
+// @ts-expect-error virtual module
6
+import routerOptions from '#build/router.options'
7
+// @ts-expect-error irtual module generated by Nuxt
8
import routes from '#build/routes'
9
10
export default defineNuxtPlugin(nuxtApp => {
11
const config = useRuntimeConfig()
12
const baseURL = config.app.baseURL
13
14
const router = createRouter({
15
+ ...routerOptions,
16
history: process.server ? createMemoryHistory(baseURL) : createWebHistory(baseURL),
17
routes,
18
})
0 commit comments