File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
packages/cli/src/commands/dev Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -17,9 +17,7 @@ export const handlePageAdd = async (
17
17
}
18
18
19
19
// create page
20
- const page = await createPage ( app , {
21
- filePath,
22
- } )
20
+ const page = await createPage ( app , { filePath } )
23
21
24
22
// add the new page
25
23
app . pages . push ( page )
@@ -28,7 +26,7 @@ export const handlePageAdd = async (
28
26
// prepare page file
29
27
await preparePageChunk ( app , page )
30
28
31
- // prepare routes file
29
+ // re- prepare routes file
32
30
await prepareRoutes ( app )
33
31
34
32
return page
Original file line number Diff line number Diff line change @@ -20,9 +20,7 @@ export const handlePageChange = async (
20
20
const pageOld = app . pages [ pageIndex ]
21
21
22
22
// create a new page from the changed file
23
- const pageNew = await createPage ( app , {
24
- filePath,
25
- } )
23
+ const pageNew = await createPage ( app , { filePath } )
26
24
27
25
// replace the old page with the new page
28
26
app . pages . splice ( pageIndex , 1 , pageNew )
You can’t perform that action at this time.
0 commit comments