Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add loader option to sample Next config #21

Merged
merged 1 commit into from
Sep 22, 2021

Conversation

gpoole
Copy link
Contributor

@gpoole gpoole commented Sep 17, 2021

Static export builds were failing with the following error:

Error: Image Optimization using Next.js' default loader is not compatible with next export.

Adding the "loader": "custom" option to next.config.js silences this error and the export works as expected.

Related to: vercel/next.js#21079

@lorenzodejong lorenzodejong merged commit 48b6371 into lorenzodejong:main Sep 22, 2021
@lorenzodejong
Copy link
Owner

Thanks for the great addition to the readme!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants