Skip to content

Commit

Permalink
chore(deps): update to next 14.2.1 (#2411)
Browse files Browse the repository at this point in the history
* chore(deps): update to next 14.2.1

* fix: correctly dynamically import axe
  • Loading branch information
dstaley committed Apr 19, 2024
1 parent 5ce233f commit d5349a5
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 67 deletions.
157 changes: 96 additions & 61 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
"mdast-util-to-string": "^2.0.0",
"moize": "^6.1.0",
"ms": "^2.1.3",
"next": "^14.1.3",
"next": "^14.2.1",
"next-auth": "^4.23.1",
"next-query-params": "^4.1.0",
"next-sitemap": "^3.1.21",
Expand Down
10 changes: 5 additions & 5 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ import { AIFeatureToast } from 'components/chatbox/ai-feature-toast'
import './style.css'

if (typeof window !== 'undefined' && process.env.AXE_ENABLED) {
// eslint-disable-next-line @typescript-eslint/no-var-requires
const ReactDOM = require('react-dom')
// eslint-disable-next-line @typescript-eslint/no-var-requires
const axe = require('@axe-core/react')
axe(React, ReactDOM, 1000)
import('react-dom').then((ReactDOM) => {
import('@axe-core/react').then((axe) => {
axe.default(React, ReactDOM, 1000)
})
})
}

initializeUTMParamsCapture()
Expand Down

0 comments on commit d5349a5

Please sign in to comment.