Are the examples on docs out of date?

I'm talking about the ones one developers.cloudflare.com/workers/examples. Using
export default
causes the error

Error: No routes found when building Functions directory
Was this page helpful?