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
Apologizes if it is a repeat issue. I did a fair amount of searching but no issue was exactly asking for this.
We have a bunch of files in the public folder. These files are:
favicon
app manifest JSON
open search XML files
etc
Currently we have a script for uploading contents of. .next folder to S3 and use assetPrefix to deliver the built files via our CDN. The CDN delivery is omitted from the public folder contents. I can upload contents of pubic folder to S3 and deliver via CDN in production by having lines like this is my _document:
This doesn't seem right. I wish Next would take public folder and fingerprinted those assets. Because with above solution, a new favicon will show up in prod the moment S3 upload is done.
Possible solution
I'm expecting Next.js rewrite href and URLs referring to assets in the public directory and build them into the distDir folder.
This discussion was converted from issue #16077 on April 12, 2021 12:01.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Feature request
We have a bunch of files in the
public
folder. These files are:Currently we have a script for uploading contents of.
.next
folder to S3 and useassetPrefix
to deliver the built files via our CDN. The CDN delivery is omitted from thepublic
folder contents. I can upload contents ofpubic
folder to S3 and deliver via CDN in production by having lines like this is my_document
:This doesn't seem right. I wish Next would take public folder and fingerprinted those assets. Because with above solution, a new favicon will show up in prod the moment S3 upload is done.
Possible solution
I'm expecting Next.js rewrite href and URLs referring to assets in the public directory and build them into the
distDir
folder.Beta Was this translation helpful? Give feedback.
All reactions