Skip to content

Commit

Permalink
chore: update to next 14
Browse files Browse the repository at this point in the history
  • Loading branch information
Pagebakers committed Nov 4, 2023
1 parent 4562df7 commit f765231
Show file tree
Hide file tree
Showing 5 changed files with 344 additions and 156 deletions.
4 changes: 2 additions & 2 deletions apps/palette/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@types/lodash.debounce": "^4.0.7",
"framer-motion": "^10.16.4",
"lodash.debounce": "^4.0.8",
"next": "^13.4.19",
"next": "^14.0.1",
"next-seo": "^6.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand All @@ -33,7 +33,7 @@
"devDependencies": {
"@types/react": "^18.2.21",
"eslint": "^8.49.0",
"eslint-config-next": "^13.4.19",
"eslint-config-next": "^14.0.1",
"typescript": "^5.2.2"
}
}
6 changes: 3 additions & 3 deletions apps/website/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ let config = {
]
},
webpack: (config, { defaultLoaders }) => {
const fileLoaderRule = config.module.rules.find(
(rule) => rule.test && rule.test.test('.svg')
)
const fileLoaderRule = config.module.rules.find((rule) => {
return new RegExp(rule.test).test('.svg')
})

config.module.rules.push({
test: /\.(png|jpe?g|gif|mp4)$/i,
Expand Down
4 changes: 2 additions & 2 deletions apps/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"framer-motion": "^10.16.4",
"github-slugger": "^2.0.0",
"match-sorter": "^6.3.1",
"next": "^13.4.19",
"next": "^14.0.1",
"next-contentlayer": "^0.3.2",
"next-mdx-remote": "^4.4.1",
"next-seo": "^6.1.0",
Expand Down Expand Up @@ -74,7 +74,7 @@
"concurrently": "^8.2.1",
"electron-to-chromium": "^1.4.522",
"eslint": "^8.49.0",
"eslint-config-next": "^13.4.19",
"eslint-config-next": "^14.0.1",
"typescript": "^5.2.2"
}
}
5 changes: 1 addition & 4 deletions apps/website/src/data/blocks/images/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import navbarsLight from './navbars-light.svg?url'
import navbarsDark from './navbars-dark.svg?url'

export default {
navbars: { light: navbarsLight.src, dark: navbarsDark.src },
navbars: { light: '', dark: '' },
}
Loading

0 comments on commit f765231

Please sign in to comment.