Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Next.js 11, remove extraneous dependencies #5

Open
karlhorky opened this issue Jul 18, 2021 · 0 comments
Open

Upgrade to Next.js 11, remove extraneous dependencies #5

karlhorky opened this issue Jul 18, 2021 · 0 comments

Comments

@karlhorky
Copy link

karlhorky commented Jul 18, 2021

Hi @ChangoMan!

Would you consider upgrading to Next.js 11 (which has a bunch of improvements, including built-in support for Sass) and then removing the extraneous dependencies?

This would also help to address the security vulnerabilities with the old dependencies.

I helped recently doing this to another site, and these are some of the changes:

https://github.com/jonaschlegel/jonaschlegel.com/commits/master

Only 4 dependencies required with this new version:

{
  "name": "nextjs-forty",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "dev": "next",
    "build": "next build",
    "start": "next start",
    "export": "next build && next export"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "dependencies": {
    "next": "^11.0.1",
    "react": "^17.0.2",
    "react-dom": "^17.0.2",
    "sass": "^1.35.2"
  }
}

...and also managed to get rid of all of the *.config.js files 🙌 : https://github.com/jonaschlegel/jonaschlegel.com/tree/master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant