Skip to content
Discussion options

You must be logged in to vote

I do not understand why we have to add flag unoptimized ! we need to use nextjs optimization for images for better quality.

Image optimization requires a server, and when you use export mode there's no server running.

There's a list of unsupported features here: https://nextjs.org/docs/app/building-your-application/deploying/static-exports#unsupported-features

And image optimization with the default loader, is listed there. You could still use 3rd party to optimize them.

Also do we need to add this line for every Nextjs project in Github pages:
basePath: process.env.NODE_ENV === 'production' ? '/nextjsmarketplace' : ''

The thing is that in Github pages your page run in a sub-path of *…

Replies: 5 comments 11 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@2div
Comment options

@icyJoseph
Comment options

@2div
Comment options

@icyJoseph
Comment options

Answer selected by 2div
@2div
Comment options

Comment options

You must be logged in to vote
5 replies
@RanvijayChouhan12
Comment options

@zenzen26
Comment options

@Ranvijay-DX
Comment options

@RanvijayChouhan12
Comment options

@zenzen26
Comment options

Comment options

You must be logged in to vote
1 reply
@alfangr
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
7 participants