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

Commit

Permalink
fix(nuxt): router defaults overwrite custom options always (#8334)
Browse files Browse the repository at this point in the history
  • Loading branch information
johannschopplich authored Oct 19, 2022
1 parent 0106e09 commit 7b16719
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nuxt/src/pages/module.ts
Original file line number Diff line number Diff line change
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 7b16719

Please sign in to comment.