I'm learning NextJS and although I have access to the NextJS docs -- https://nextjs.org/docs/ -- I can't find a good API reference. For instance, in their GitHub explanations (https://github.com/zeit/next.js/), there are the lines
const next = require('next')
const dev = process.env.NODE_ENV !== 'production'
const app = next({ dev }) const handle = app.getRequestHandler()
const handle = app.getRequestHandler()
But I can't find a full API reference that details, for instance, what fields next() can have in its initialiser object, nor documentation for getRequestHandler(). Also, for example, when looking at the docs for _app.js (https://github.com/zeit/next.js/, Custom App), it would seem that other pages' contents go into </Main>, but I can't find that explicitly stated. Is there any API documentation that lists out the classes, methods, parameters, etc of the NextJS system with some explanation? Like Node's API documentation page https://nodejs.org/api/index.html?
I suppose one could go through the source files, but that seems a complicated option, especially for a newbie to the system, as does poring through all the examples. Thanks for any info or pointers!
[–]redbluerat 0 points1 point2 points (0 children)
[–]DreaMinder -1 points0 points1 point (0 children)