Update next.config.mjs
This commit is contained in:
@@ -20,13 +20,7 @@ const bundleAnalyzer = withBundleAnalyzer({
|
|||||||
})
|
})
|
||||||
|
|
||||||
export default bundleAnalyzer(withNextra({
|
export default bundleAnalyzer(withNextra({
|
||||||
|
output: 'standalone',
|
||||||
// static export start
|
|
||||||
output: 'export',
|
|
||||||
images: {
|
|
||||||
unoptimized: true // mandatory, otherwise won't export
|
|
||||||
},
|
|
||||||
// static export end
|
|
||||||
|
|
||||||
// eslint: {
|
// eslint: {
|
||||||
// ignoreDuringBuilds: true,
|
// ignoreDuringBuilds: true,
|
||||||
@@ -41,3 +35,6 @@ export default bundleAnalyzer(withNextra({
|
|||||||
// staticGenerationMinPagesPerWorker: 1 // keep small, default is 25
|
// staticGenerationMinPagesPerWorker: 1 // keep small, default is 25
|
||||||
// }
|
// }
|
||||||
}))
|
}))
|
||||||
|
|
||||||
|
// If you have other Next.js configurations, you can pass them as the parameter:
|
||||||
|
// export default withNextra({ /* other next.js config */ })
|
||||||
Reference in New Issue
Block a user