Skip to content

[243] Upgrade next.js #263

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

[243] Upgrade next.js #263

wants to merge 3 commits into from

Conversation

Regina-Gimazova
Copy link
Contributor

Summary

A brief description of the pull request.

Resolves: #243

Screenshots in case of UI changes

Test plan

List of steps to manually test introduced functionality:

What do need to pay more attention to, some implicit changes that influence the app:

  • ...

Review notes

While reviewing pull-request (especially when it's your pull-request), please make sure that:

  • you named PR close to issue name and linked that issue
  • you understand what problem is solved by PR and how is it solved
  • new tests are in place, no redundant tests
  • required ENV variables added and described in .env.example and added to Heroku
  • associated Heroku review app works correctly with introduced changes


// getDataFromTree does not call componentWillUnmount
// head side effect therefore need to be cleared manually
Head.rewind();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +3 to +6
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was added automatically

Comment on lines -17 to -19
config.node = {
fs: 'empty',
};
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you are using something like node.fs: 'empty' replace it with resolve.fallback.fs: false.

https://webpack.js.org/migrate/5/

@@ -2,21 +2,15 @@
/* eslint-disable no-param-reassign */

const dotenv = require('dotenv');
const withPlugins = require('next-compose-plugins');
const nextImages = require('next-images');
const nextFonts = require('next-fonts');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was needed when Nextjs had no support for importing fonts without using plugins.

https://www.npmjs.com/package/next-fonts

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

Successfully merging this pull request may close these issues.

Update next.js to 11 version
1 participant