Skip to content

Commit

Permalink
config: 删除output
Browse files Browse the repository at this point in the history
  • Loading branch information
luobin committed Aug 21, 2024
1 parent 037109b commit f29f0a4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const securityHeaders = [
},
]

const output = process.env.EXPORT ? 'export' : undefined
// const output = process.env.EXPORT ? 'export' : undefined
const basePath = process.env.BASE_PATH || undefined
const unoptimized = process.env.UNOPTIMIZED ? true : undefined

Expand All @@ -64,9 +64,12 @@ const unoptimized = process.env.UNOPTIMIZED ? true : undefined
module.exports = () => {
const plugins = [withContentlayer, withBundleAnalyzer]
return plugins.reduce((acc, next) => next(acc), {
output,
// output,
basePath,
reactStrictMode: true,
devIndicators: {
autoPrerender: false,
},
pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],
eslint: {
dirs: ['app', 'components', 'layouts', 'scripts'],
Expand Down

0 comments on commit f29f0a4

Please sign in to comment.