-
Notifications
You must be signed in to change notification settings - Fork 79
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 Next.js to v13 - Part I #5402
base: develop
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
//sentry testing was causing OOM for some reason | ||
//const { testkit, sentryTransport } = sentryTestkit(); | ||
//global.testKit = testkit; | ||
const { testkit } = sentryTestkit(); | ||
global.testKit = testkit; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Their next upgrade was focused mostly on performance and reducing bundle size so my guess was the OOM was happening due to that.
import { TFunction } from "i18n"; | ||
import { StringMap, TOptions } from "i18next"; | ||
import i18n from "test/i18n"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They stopped exposing StringMap
purposely (says in their docs). I tried to re-write this function but it was getting pretty gnarly, which is why I decided to just use the test instance of i18n in the tests and use the t function from there rather than mocking a separate one.
Part 1 of the Next.js v13 upgrade. I will break this into two. This is doing the minimum to upgrade, which includes keeping some legacy behavior. The pages folder system will also be merged into the app folder and a lot of config will change. This version supports both ways. In part 2 I will change to new structure.
Migration Guide:
https://nextjs.org/docs/pages/building-your-application/upgrading/version-13
I needed to upgrade these packages as well for this:
This means you'll want to pay attention to translations and sentry while testing.
Web frontend checklist
yarn format
yarn lint --fix