Deploy your NextJS Application on a different base path (i.e. not root)
Published in
7 min readDec 5, 2019
One of default NextJS assumptions is that we will deploy our applications on the root base path of a domain — this is /
. NextJS routing converts each file inside the pages
folder to a matching path. So if we have a file named ./pages/index.js
this matches /
, and for a file named ./pages/about.js
it will be accessible at /about
. This is a pretty simple scheme, and it…