twopluszero / next-images

Import images in Next.js (supports jpg, jpeg, svg, png and gif images)
MIT License
948 stars 67 forks source link

Dynamic assetPrefix via next runtime configuration utils #44

Closed peter-jozsa closed 4 years ago

peter-jozsa commented 4 years ago

Aims to implement support for runtime configurable asset prefixes in next-images package which was previously mentioned in #12

peter-jozsa commented 4 years ago

bump

arefaslani commented 4 years ago

@peter-jozsa Could you also update the readme please so that we know how to use the new feature?

peter-jozsa commented 4 years ago

As I checked availability of runtime configuration feature I saw it is only available starting from Next.js v6, is that a problem? Maybe this dynamic asset prefix feature should be opt-in since it will change transpiled image paths for everyone, what do you think?

arefaslani commented 4 years ago

As I checked availability of runtime configuration feature I saw it is only available starting from Next.js v6, is that a problem? Maybe this dynamic asset prefix feature should be opt-in since it will change transpiled image paths for everyone, what do you think?

@peter-jozsa Let me check that after working hours. Will come back to you soon.