You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am able to see my web app log on sentry, and was ready to export for production but, after running npm build && export, i'm getting
Error: Image Optimization using Next.js' default loader is not compatible with next export.
Possible solutions:
Use next start to run a server, which includes the Image Optimization API.
Use any provider which supports Image Optimization (like Vercel).
Configure a third-party loader in next.config.js.
Use the loader prop for next/image.
After some googling i found out a solution with LOADER .
And possible values for images.loader are: [ default, imgix, cloudinary, akamai, custom ] & i'm using imgix.
We have to put '/' in path ( according to some STACKOVERFLOW SUGGESTIONS ), but this is not working for me & server is responding with some error like - please enter valid path & after adding localhost url ( i.e http://localhost:3000/ ) instead of '/' then the server is running & i'm able to make build successfully but sentry stopped working ( on localhost as well ).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
Greetings of the day!
I am able to see my web app log on sentry, and was ready to export for production but, after running npm build && export, i'm getting
Error: Image Optimization using Next.js' default loader is not compatible with
next export
.Possible solutions:
next start
to run a server, which includes the Image Optimization API.next.config.js
.loader
prop fornext/image
.After some googling i found out a solution with LOADER .
And possible values for images.loader are: [ default, imgix, cloudinary, akamai, custom ] & i'm using imgix.
module.exports = { images: { loader: 'imgix', path:
/, }, }
We have to put '/' in path ( according to some STACKOVERFLOW SUGGESTIONS ), but this is not working for me & server is responding with some error like - please enter valid path & after adding localhost url ( i.e http://localhost:3000/ ) instead of '/' then the server is running & i'm able to make build successfully but sentry stopped working ( on localhost as well ).
Beta Was this translation helpful? Give feedback.
All reactions