Skip to content

Commit

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

module.exports = nextConfig

0 comments on commit c8dac85

Please sign in to comment.