Skip to content

Commit 612c9d8

Browse files
update
1 parent 341f276 commit 612c9d8

File tree

4 files changed

+305
-8
lines changed

4 files changed

+305
-8
lines changed

components/Post/LastestArticle/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ export const LastestArticle: FC<LastestArticleProps> = async ({ limit }) => {
2020
) : (
2121
<ul className="grid grid-cols-1 justify-center gap-4 md:grid-cols-2 lg:grid-cols-3">
2222
{usedPostsMetadata.map(postMetadata => (
23-
<li key={postMetadata.slug}>
24-
<ArticleCard {...postMetadata} as="li" />
25-
</li>
23+
<ArticleCard {...postMetadata} as="li" key={postMetadata.slug} />
2624
))}
2725
</ul>
2826
)}

next.config.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1+
import withRspack from 'next-rspack';
12
import type { NextConfig } from 'next';
23

3-
export default {
4+
const nextConfig: NextConfig = {
45
output: 'export',
56
typescript: {
67
ignoreBuildErrors: true,
78
},
89
eslint: {
910
ignoreDuringBuilds: true,
1011
},
11-
} as NextConfig;
12+
};
13+
14+
export default process.env.NODE_ENV === 'production'
15+
? nextConfig
16+
: withRspack(nextConfig);

package-lock.json

Lines changed: 296 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"classnames": "~2.5.1",
2525
"next": "15.3.3",
2626
"next-mdx-remote": "~5.0.0",
27+
"next-rspack": "^15.3.3",
2728
"react": "19.1.0",
2829
"react-dom": "19.1.0"
2930
},

0 commit comments

Comments
 (0)