Skip to content

Commit e4211ba

Browse files
committed
chore: tweaks
1 parent d45c678 commit e4211ba

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

packages/cli/src/commands/dev/handlePageAdd.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ export const handlePageAdd = async (
1717
}
1818

1919
// create page
20-
const page = await createPage(app, {
21-
filePath,
22-
})
20+
const page = await createPage(app, { filePath })
2321

2422
// add the new page
2523
app.pages.push(page)
@@ -28,7 +26,7 @@ export const handlePageAdd = async (
2826
// prepare page file
2927
await preparePageChunk(app, page)
3028

31-
// prepare routes file
29+
// re-prepare routes file
3230
await prepareRoutes(app)
3331

3432
return page

packages/cli/src/commands/dev/handlePageChange.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ export const handlePageChange = async (
2020
const pageOld = app.pages[pageIndex]
2121

2222
// create a new page from the changed file
23-
const pageNew = await createPage(app, {
24-
filePath,
25-
})
23+
const pageNew = await createPage(app, { filePath })
2624

2725
// replace the old page with the new page
2826
app.pages.splice(pageIndex, 1, pageNew)

0 commit comments

Comments
 (0)