@netlify/next-runtime v5.0.0-alpha.25
Next.js Runtime
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.
Testing
Integration testing
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. In addition, the integration tests need to be prepared before first use. You can do this by runningnpm run pretest.
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago