You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
new codemode that changes directory from Page to App
Non-Goals
Background
i use nextjs on production for my company
i upgrade version 12 -> 13
i changed directory from page to app
there is little works,
for example Migrating _document.js and _app.js, make page.ts in every routing folder etc
so i want to make it automatically
Proposal
this is my rough plan
study how to work the next-codemod package( how do this change code )
and change deprecated method like serversideprops
migrate __app and _document into layout
( i think this 3 can be remove because every person has diffrent _app and _document )
change directory name pages -> app
change the directory name to the same as file name ex) myPage/main.ts -> myPage/main/page.ts
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Non-Goals
Background
i use nextjs on production for my company
i upgrade version 12 -> 13
i changed directory from page to app
there is little works,
for example
Migrating _document.js and _app.js
,make page.ts
in every routing folder etcso i want to make it automatically
Proposal
this is my rough plan
next-codemod
package( how do this change code )( i think this 3 can be remove because every person has diffrent _app and _document )
pages
->app
ex) myPage/main.ts -> myPage/main/page.ts
i want contirbute little part of nextjs
Beta Was this translation helpful? Give feedback.
All reactions