The tree is the map

pages/index.py is /. pages/blog/index.py is /blog/. pages/blog/[slug].py is one page per value static_paths() returns.

A build that knows every URL up front can write a sitemap, and a host that has every file never needs a rewrite rule.

There is no routing table to keep in step with the files, because the files are the routing table.

← every post