Skip to content

Commit

Permalink
⬆️ chore: upgrade nextjs to 14.0.2 (lobehub#467)
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx authored Nov 16, 2023
1 parent 5bdbd6a commit 87a030f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,23 @@ const nextConfig = {

reactStrictMode: true,

transpilePackages: ['@lobehub/ui', 'antd-style', 'lodash-es'],
transpilePackages: ['antd-style', '@lobehub/ui'],

webpack(config) {
config.experiments = {
asyncWebAssembly: true,
layers: true,
};

config.resolve.alias['@ant-design/cssinjs'] = '@ant-design/cssinjs/lib';
// to fix shikiji compile error
// refs: https://github.com/antfu/shikiji/issues/23
config.module.rules.push({
test: /\.m?js$/,
type: 'javascript/auto',
resolve: {
fullySpecified: false,
},
});

return config;
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"lucide-react": "latest",
"modern-screenshot": "^4",
"nanoid": "^5",
"next": "14.0.1",
"next": "^14.0.2",
"openai": "^4.17.3",
"polished": "^4",
"posthog-js": "^1",
Expand Down

0 comments on commit 87a030f

Please sign in to comment.