Possible to define routes declaratively with <Route>? #3323
-
The docs say:
and
This suggests the two routing methods (declarative and file-based) may coexist in remix? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Remix routes are defined during build time. It uses file based routing by default but you can define your own routes using remix.config. Although it is code based you could define a file (e.g. JSON) and write a function that will build routes based on the file. |
Beta Was this translation helpful? Give feedback.
Remix routes are defined during build time. It uses file based routing by default but you can define your own routes using remix.config. Although it is code based you could define a file (e.g. JSON) and write a function that will build routes based on the file.
https://remix.run/docs/en/v1/api/conventions#routes