Next.js is supported natively on Netlify, and in most cases you will not need to install or configure anything. This repo includes the packages used to support Next.js on Netlify.
How to add new integration test scenarios to the application:
- Create a new folder under
tests/fixtures/<your-name> - Adapt the
next.config.jsto be a standalone application - Create a
postinstallscript that runs thenext build. It's important to notice that the integration tests rely on a already built next.js application in this folder. They rely on the.nextfolder. - Add your test
Currently the tests require a built version of the
dist/run/handlers/cache.cjsso you need to runnpm run buildbefore executing the integration tests.