Back to Writing
NOTESnext-jsstatic-exportimage-optimizationweb-dev
Next.js - Configuring Image Loader for Static Export
May 23, 2022•Updated Feb 17, 2026
// next.config.js
module.exports = {
images: {
loader: 'akamai',
path: '/',
}
}
Use the Akamai loader in next.config.js.
References:
kingsubin.tistory.comhttps://kingsubin.tistory.com/475
Next Export Image Optimization Configuration Issue — When attempting static deployment from a Next.js project via next export, you may encounter: "Image Optimization using Next.js default loader is not compatible with next export." The fix is to configure an alternative loader.