Skip to content

Commit

Permalink
feat: change default defaultPath & notFoundPath
Browse files Browse the repository at this point in the history
  • Loading branch information
serkodev committed Apr 14, 2024
1 parent f4e8e27 commit 91936f3
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/runtime/parallel-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ export default defineNuxtPlugin(async () => {
async function createParallelRouter(name: string, routes: RouteRecord[], router: Router, parallelPageOptions: Partial<ParallelPageOptions>): Promise<ParallelRouter> {
const options = defu(parallelPageOptions, {
mode: 'sync',
defaultPath: '/default',
notFoundPath: '/not-found',
defaultPath: '/~default',
notFoundPath: '/~not-found',
disableSoftNavigation: false,
} satisfies ParallelPageOptions)

Expand Down
6 changes: 3 additions & 3 deletions src/runtime/types.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
export interface ParallelPageOptions {
// default: true
// default: 'sync'
mode: 'sync' | 'sync-once' | 'manual'

// default: undefined
manualSyncIndexPath?: string

// default: '/default'
// default: '/~default'
defaultPath: string | false

// default: '/not-found'
// default: '/~not-found'
notFoundPath: string | false

// default: false
Expand Down

0 comments on commit 91936f3

Please sign in to comment.