Replies: 1 comment 1 reply
-
Just noticed it's already integrated in remix, but it has to be configured in the config file: https://remix.run/docs/en/v1/api/conventions#remixconfigjs |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Next JS has a nice feature where you can catch all the routes starting from the slug (documentation).
It could be implemented like:
Example
So:
/foo
would renderfoo.js
./foo/a
would render[...bar].js
/foo/a/b
would render[...bar].js
/foo/b/c/d
would render[...bar].js
Beta Was this translation helpful? Give feedback.
All reactions