[examples/doc] Added the statichandling object to the app config and updated the configure_routing example (and docs) to work with `next`.