-
SummaryHey, I have a scenario where I'd like to statically export my Next.js app with the resources specified with absolute URLs instead of relative which seems to be the default. For example, when I use The My solution could be to do a find and replace of the base path and replace it with the appropriate URL after the build completes, but I was seeing if there was a native way to achieve this. Additional informationThe reason for this requirement is all the web content will be hosted on domain-x.com and third party will render just the HTML on their own domain-y.com. The resources would then need to be absolute to point to domain-x otherwise they will be failed to be found on domain-y when they're defined relatively. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Never mind, I then immediately found the assetPrefix config option which is exactly what I needed |
Beta Was this translation helpful? Give feedback.
Never mind, I then immediately found the assetPrefix config option which is exactly what I needed