Files
Johannes ObermairandGitHub 82ed6a3b0d Fix next/image config injection during static generation (#47007)
Fixes #39330.

I've not added a new test, but extended the existing test instead (and
re-enabled it).

It seems to me that a custom next/image config was not considered during
static generation (which itself uses `next export`?) before. Adding the
config to `renderOpts` in `packages/next/src/export/index.ts` resolves
the issue.
2023-03-13 10:47:05 -07:00

7 lines
93 B
JavaScript

module.exports = {
images: {
domains: ['i.imgur.com'],
deviceSizes: [1234],
},
}