Skip to content

Commit

Permalink
fix: type error
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Apr 14, 2023
1 parent 93d61e1 commit e3e446e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ export function setupPages(
export function analyzeNuxtPages(ctx: NuxtPageAnalizeContext, pages: NuxtPage[], pageDirOverride?: string): void {
const pagesPath = resolve(ctx.srcDir, pageDirOverride ?? ctx.pagesDir)
for (const page of pages) {
if (page.file == null) {
continue
}
const splited = page.file.split(pagesPath)
if (splited.length === 2 && splited[1]) {
const { dir, name } = parsePath(splited[1])
Expand Down

0 comments on commit e3e446e

Please sign in to comment.