Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
fix(app): router defaults overwrite custom options always
Browse files Browse the repository at this point in the history
  • Loading branch information
johannschopplich committed Oct 19, 2022
1 parent 418b567 commit 90f9642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nuxt/src/pages/module.ts
Expand Up @@ -145,7 +145,7 @@ export default defineNuxtModule({
))).filter(Boolean) as string[]

// Add default options
routerOptionsFiles.unshift(resolve(runtimeDir, 'router.options'))
routerOptionsFiles.push(resolve(runtimeDir, 'router.options'))

const configRouterOptions = genObjectFromRawEntries(Object.entries(nuxt.options.router.options)
.map(([key, value]) => [key, genString(value as string)]))
Expand Down

0 comments on commit 90f9642

Please sign in to comment.