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 (
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
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments