Skip to content

Serving next.js static assets from public folder after build time problems #18005

Answered by jamesmosier
jochri3 asked this question in Help
Discussion options

You must be logged in to vote

The public folder is not meant to dynamically set objects in it. After build it should not be altered.

Therefore you'd need to setup another endpoint using Node or similar server technology to be able to get/set objects on the servers filesystem outside of Next.

Replies: 4 comments 13 replies

Comment options

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

Comment options

You must be logged in to vote
2 replies
@sujon-co
Comment options

@RMahammad
Comment options

Answer selected by jamesmosier
Comment options

You must be logged in to vote
10 replies
@ajdev0
Comment options

@kabilashgit
Comment options

@wlisesrivas
Comment options

@SmirnoffStudio
Comment options

@desta
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