Skip to content

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

@karlhorky

Description

@karlhorky

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions