Skip to content

Commit

Permalink
output image fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Пётр Безденежных authored and Пётр Безденежных committed Mar 16, 2024
1 parent 8f5063b commit fd12c21
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
/** @type {import('next').NextConfig} */
const { PHASE_DEVELOPMENT_SERVER } = require('next/constants');
const nextConfig = (phase, { defaultConfig }) => {
return {
output: 'export',
if (phase === PHASE_DEVELOPMENT_SERVER) {
return {
output: 'export',
images: { unoptimized: true },
}
} else {
return {
output: 'export',
}
}
}

Expand Down

0 comments on commit fd12c21

Please sign in to comment.