Guide

Attempt to Incrementally Adopting Next.js within an existing SPA (routed by @reach/router, if you use other solutions, it shouldn't matter).

This covers both for subdomains (username.example.com) and paths (example.com/username). These should be equivalent:

Root

Client routes

Next routes

Notes

Transitioning from SPA to Next and back will fire an hard reload, that's expected