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
Now, according to docs, assetPrefix only influence css and js files from public folder, so in order to prefix other assets (e.g. jpg, woff2 and etc) with CDN we need to make our own solution and use it across our code base. From my perspective, it is common scenario for users, who use NextJS with CDN, so it would be cool feature to implement on NextJS side.
Describe the solution you'd like
assetPrefix influence non css and js assets too.
Probably, it would be great to have assetPrefix as an object with such structure.
This discussion was converted from issue #27615 on July 30, 2021 13:53.
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.
-
Describe the feature you'd like to request
Now, according to docs, assetPrefix only influence css and js files from public folder, so in order to prefix other assets (e.g. jpg, woff2 and etc) with CDN we need to make our own solution and use it across our code base. From my perspective, it is common scenario for users, who use NextJS with CDN, so it would be cool feature to implement on NextJS side.
Describe the solution you'd like
assetPrefixinfluence non css and js assets too.Probably, it would be great to have assetPrefix as an object with such structure.
Beta Was this translation helpful? Give feedback.
All reactions