Skip to content

Routing

Jeremy Asuncion edited this page Jul 11, 2024 · 2 revisions

Remix Routing

Routing is handled entirely through Remix's routing system using file based routing:

image

becomes:

/
/api
/api/event
/api/file-size
/api/logs
/browse-data/datasets
/browse-data/depositions
/competition
/data-submission-policy
/datasets/<id>
/faq
/plausible.js
/privacy
/runs/<id>

Route Best Practices

  • Try to make routes modular to load data in parallel
  • Handle data fetching in route file
  • Implement page as a separate component to keep route file clean
Clone this wiki locally