Skip to content

Commit

Permalink
enabled static export
Browse files Browse the repository at this point in the history
When running next build, Next.js generates an HTML file per route. By breaking a strict SPA into individual HTML files, Next.js can avoid loading unnecessary JavaScript code on the client-side, reducing the bundle size and enabling faster page loads.
  • Loading branch information
parkercon committed Jan 24, 2024
1 parent a5605e6 commit e6aab4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: false,
output: 'export',
webpack: (config, { isServer }) => {
// Add the file-loader rule for PDF files
config.module.rules.push({
Expand Down

0 comments on commit e6aab4b

Please sign in to comment.