Skip to content

NextJS app deployed on GitHub Actions but Tailwind CSS not applied. Just plain HTML show on the app #62861

Answered by icyJoseph
2div asked this question in Help

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: 4 comments 6 replies

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies

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

@icyJoseph

@2div

@icyJoseph

Answer selected by 2div
@2div

You must be logged in to vote
1 reply
@RanvijayChouhan12

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