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
the example is assetPrefix: isProd ? 'https://cdn.mydomain.com' : '',
but i need set servals cdn name ,for example ,
assetPrefix: _.random(['https://cdn01.mydomain.com', 'https://cdn02.mydomain.com'])
I have searched the issues of this repository and believe that this is not a duplicate.
Expected Behavior
Current Behavior
Steps to Reproduce (for bugs)
Context
Your Environment
Tech
Version
next
node
OS
browser
etc
The text was updated successfully, but these errors were encountered:
That should work, just load lodash inside the next.config.js and run that code, but that will just pick one of the CDN when building the app.
If you want to pick one dynamically you need to do it yourself in the code of your app. Maybe get the CDN url in the getInitialProps and cache it client side (maybe with sessionStorage) so it's going to be the same always for that user session.
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.
lockbot
locked as resolved and limited conversation to collaborators
May 10, 2018
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
the example is assetPrefix: isProd ? 'https://cdn.mydomain.com' : '',
but i need set servals cdn name ,for example ,
assetPrefix: _.random(['https://cdn01.mydomain.com', 'https://cdn02.mydomain.com'])
Expected Behavior
Current Behavior
Steps to Reproduce (for bugs)
Context
Your Environment
The text was updated successfully, but these errors were encountered: