NES for Next.js 12.3.x
Installation and configuration guide for NES for Next.js 12.3.x
Minimum Requirements
Please review our Minimum Requirements to ensure a smooth installation. Then follow 3 easy steps:
- Update your
package.json
- Create or update your
.npmrc
file - Install & Run!
Detailed Instructions
Substitute the Next dependencies in your package.json with the following
{
"dependencies": {
"@next/bundle-analyzer": "npm:@neverendingsupport/next-bundle-analyzer@12.3.7-next-12.3.10",
"@next/env": "npm:@neverendingsupport/nex-envt@12.3.7-next-12.3.10",
"@next/mdx": "npm:@neverendingsupport/next-mdx@12.3.7-next-12.3.10",
"@next/polyfill-module": "npm:@neverendingsupport/next-polyfill-module@12.3.7-next-12.3.10",
"@next/polyfill-nomodule": "npm:@neverendingsupport/next-polyfill-nomodule@12.3.7-next-12.3.10",
"@next/react-dev-overlay": "npm:@neverendingsupport/next-react-dev-overlay@12.3.7-next-12.3.10",
"@next/react-refresh-utils": "npm:@neverendingsupport/next-react-refresh-utils@12.3.7-next-12.3.10",
"next": "npm:@neverendingsupport/next@12.3.7-next-12.3.10",
"react": "17.0.2",
"react-dom": "17.0.2"
},
"devDependencies": {
"eslint": "^8.0.0",
"eslint-config-next": "npm:@neverendingsupport/eslint-config-next@12.3.7-next-12.3.10",
"@next/eslint-plugin-next": "npm:@neverendingsupport/next-eslint-plugin-next@12.3.7-next-12.3.10",
"typescript": "^4.4.4",
"@types/node": "^16.11.6",
"@types/react": "^17.0.33",
"@types/react-dom": "^17.0.10"
},
"overrides": {
"@next/bundle-analyzer": {".": "npm:@neverendingsupport/next-bundle-analyzer@12.3.7-next-12.3.10"},
"@next/env": {".": "npm:@neverendingsupport/next-env@12.3.7-next-12.3.10"},
"@next/eslint-plugin-next": {".": "npm:@neverendingsupport/next-eslint-plugin-next@12.3.7-next-12.3.10"},
"@next/mdx": {".": "npm:@neverendingsupport/next-mdx@12.3.7-next-12.3.10"},
"@next/polyfill-module": {".": "npm:@neverendingsupport/next-polyfill-module@12.3.7-next-12.3.10"},
"@next/polyfill-nomodule": {".": "npm:@neverendingsupport/next-polyfill-nomodule@12.3.7-next-12.3.10"},
"@next/react-dev-overlay": {".": "npm:@neverendingsupport/next-react-dev-overlay@12.3.7-next-12.3.10"},
"@next/react-refresh-utils": {".": "npm:@neverendingsupport/next-react-refresh-utils@12.3.7-next-12.3.10"},
"eslint-config-next": {".": "npm:@neverendingsupport/eslint-config-next@12.3.7-next-12.3.10"},
"next": {".": "npm:@neverendingsupport/next@12.3.7-next-12.3.10" }
}
}
Note
You do not need to install every NES for Next.js package. Simply select the packages applicable to your project.
Create an .npmrc
file with the following
Replace <NES_ACCESS_TOKEN>
with your access token.
@neverendingsupport:registry=https://registry.nes.herodevs.com/npm/pkg/
//registry.nes.herodevs.com/npm/pkg/:_authToken=<NES_ACCESS_TOKEN>
Install your dependencies
npm install
And just like that, you can run your integration tests against NES for Next.js!
Note
Due to the varying behaviors across package managers, we have dropped the following optional peer dependencies. Most projects should be unaffected, but you may need to explicitly add some of these if npm install
fails mentioning these packages.
"fibers": ">= 3.1.0",
"node-sass": "^6.0.0 || ^7.0.0",
"sass": "^1.3.0"
Additional Information
Direct Download URLs
The direct download URLs for NES for Next.js are:
Package | URL |
---|---|
eslint-config-next 12.3.7-next-12.3.10 | Download |
@next/eslint-plugin-next 12.3.7-next-12.3.10 | Download |
next 12.3.7-next-12.3.10 | Download |
@next/bundle-analyzer 12.3.7-next-12.3.10 | Download |
@next/env 12.3.7-next-12.3.10 | Download |
@next/mdx 12.3.7-next-12.3.10 | Download |
@next/polyfill-module 12.3.7-next-12.3.10 | Download |
@next/polyfill-nomodule 12.3.7-next-12.3.10 | Download |
@next/react-dev-overlay 12.3.7-next-12.3.10 | Download |
@next/react-refresh-utils 12.3.7-next-12.3.10 | Download |