Skip to content

Commit 798d586

Browse files
committed
Configure Next.js for static export and remove 404 page
1 parent 70db763 commit 798d586

2 files changed

Lines changed: 2 additions & 23 deletions

File tree

app/not-found.tsx

Lines changed: 0 additions & 23 deletions
This file was deleted.

next.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ const nextConfig: NextConfig = {
1313
trailingSlash: true,
1414
// Disable static optimization for pages that use client-side features
1515
staticPageGenerationTimeout: 300,
16+
// Configure 404 page for static export
17+
pageExtensions: ['js', 'jsx', 'ts', 'tsx'],
1618
};
1719

1820
export default nextConfig;

0 commit comments

Comments
 (0)