#Is there a Remix CLI command to view to the generated react-router routes?

1 messages · Page 1 of 1 (latest)

burnt nebula
#

A few weeks ago, @fiery grail i think I saw you mention in some github discussion or issue that there is a remix cli command you can run in your app to view the react-router routes that get generated from your apps /routes folder

Does anyone remember the command?

The idea of the command was that it would output something that looks like (using info from your /routes folder this when you run the command:

$ some_remix_command
<Routes>
  <Route file="root.tsx">
    <Route path="blog/" file="routes/blog/__nested.tsx">
      <Route path=":id" file="routes/blog/__nested/$id.tsx" />
      <Route path="new" file="routes/blog/__nested/new.tsx" />
    </Route>
    <Route path="blog" index file="routes/blog/index.tsx" />
    <Route index file="routes/index.tsx" />
  </Route>
</Routes>
regal egret
#

there's remix routes

#

by default it gives you the RR syntax routes

burnt nebula
#

perfect that was it: npx remix routes