Skip to content

Commit

Permalink
fix(3000-home): add trailing slash on antd and lodash shared config (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ryok90 authored Jan 28, 2024
1 parent 398194e commit 349c73a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions apps/3000-home/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { withNx } = require('@nx/next/plugins/with-nx');
const NextFederationPlugin = require('@module-federation/nextjs-mf');

/**
* @type {import('@nrwl/next/plugins/with-nx').WithNxOptions}
* @type {import('@nx/next/plugins/with-nx').WithNxOptions}
**/
const nextConfig = {
nx: {
Expand Down Expand Up @@ -39,8 +39,8 @@ const nextConfig = {
'./menu': './components/menu',
},
shared: {
lodash: {},
antd: {},
'lodash/': {},
'antd/': {},
},
extraOptions: {
debug: false,
Expand Down
2 changes: 1 addition & 1 deletion apps/3000-home/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const Home = () => {
<td>
Load federated component from checkout with old antd version
</td>
<td>[Button from antd@4.20.0]</td>
<td>[Button from antd@4.24.15]</td>
<td>
<Suspense fallback="loading ButtonOldAnt">
<ButtonOldAnt />
Expand Down
4 changes: 2 additions & 2 deletions apps/3001-shop/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ const nextConfig = {
'./menu': './components/menu',
},
shared: {
lodash: {},
antd: {},
'lodash/': {},
'antd/': {},
},
extraOptions: {
exposePages: true,
Expand Down
4 changes: 2 additions & 2 deletions apps/3002-checkout/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ const nextConfig = {
'./menu': './components/menu',
},
shared: {
lodash: {},
antd: {},
'lodash/': {},
'antd/': {},
},
extraOptions: {
exposePages: true,
Expand Down

0 comments on commit 349c73a

Please sign in to comment.