Following the rules defined here: https://remix.run/docs/en/main/pages/v2
Run the following in the project directory:
curl -fsSL https://gist.github.com/Plopix/58fc3f3be202d9915c466e71077d36a2/raw/migrate-to-v2-routing.bash | bash -s I_ROUTES_FOLDER O_ROUTES_FOLDER
This script does not replace anything for you but create a new folder instead so you can double-check.
Params are optional, by default:
I_ROUTES_FOLDER
is set toapp/routes
O_ROUTES_FOLDER
is set toapp-routes-v2
License: MIT
Author: https://github.com/plopix - https://twitter.com/plopix
</> with <3 by https://crystallize.com