Skip to content

Next 13.4.1 : Images, Js and Css not loading after build. Shows 404 for all #49803

Answered by Ashikpaul
Ashikpaul asked this question in Help
Discussion options

You must be logged in to vote

The Fix is
Manually copy the _next folder in dockerfile
For js and css
COPY --from=builder --chown=10101 /app/.next ./_next
For images
COPY --from=builder --chown=10101 /app/public ./public

Thank you @icyJoseph

Replies: 6 comments 14 replies

Comment options

You must be logged in to vote
12 replies
@Ashikpaul
Comment options

@icyJoseph
Comment options

@Ashikpaul
Comment options

@icyJoseph
Comment options

@Ashikpaul
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Ashikpaul
Comment options

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

Comment options

You must be logged in to vote
0 replies
Comment options

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

Comment options

You must be logged in to vote
0 replies
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