-
Notifications
You must be signed in to change notification settings - Fork 1
Upgrade to Next@15 #1247
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
base: develop
Are you sure you want to change the base?
Upgrade to Next@15 #1247
Conversation
| // Configure cookie removal in Sentry scope | ||
| Sentry.getCurrentScope().addEventProcessor((event) => { | ||
| if (event.request?.cookies[GSSO_TOKEN_NAME]) | ||
| event.request.cookies[GSSO_TOKEN_NAME] = '[REMOVED]' | ||
|
|
||
| if (event.request?.cookies[NEXT_PUBLIC_DRS_SESSION_COOKIE_NAME]) | ||
| event.request.cookies[NEXT_PUBLIC_DRS_SESSION_COOKIE_NAME] = | ||
| '[REMOVED]' | ||
|
|
||
| return event | ||
| }) |
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.
Rm server-side sentry config
| let isReady = false | ||
| let nextRequestHandler | ||
|
|
||
| server.all('*', (req, res) => nextRequestHandler(req, res)) | ||
| async function init() { | ||
| if (!isReady) { | ||
| await app.prepare() | ||
| nextRequestHandler = app.getRequestHandler() | ||
| isReady = true | ||
| } | ||
| } |
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.
Track when application is ready
| > | ||
| <TD className="lbh-body-xs"> | ||
| <Link href={`/work-orders/${reference}`}> | ||
| <Link href={`/work-orders/${reference}`} legacyBehavior> |
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.
Add legacyBehavior tag because links containing an anchor tag is now depricated
| const { NODE_ENV, SENTRY_RELEASE } = process.env | ||
|
|
||
| const sentryWebpackPluginOptions = { | ||
| dryRun: !(NODE_ENV === 'production'), | ||
| release: SENTRY_RELEASE, | ||
| silent: !(NODE_ENV === 'production'), | ||
| } | ||
|
|
||
| module.exports = withSentryConfig(moduleExports, sentryWebpackPluginOptions) |
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.
RM Sentry config
| { | ||
| "name": "repairs-hub-frontend", | ||
| "version": "0.1.0", | ||
| "private": true, | ||
| "dependencies": { | ||
| "restana": "^4.8.0", | ||
| "serve-static": "^1.14.1", | ||
| "serverless-http": "^2.6.0" | ||
| } | ||
| } |
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.
Add package.json for lambda.js file, to minimize bundle size
Summary of changes:
legacyBehaviourtag for links. These can be upgraded in a future PRToo many changes to list everything, so may be better to ask questions.
I am due to do some extensive smoke testing to ensure no functionality is lost. But with a PR this size, its inevitable something will break.