Next.js Discord

Discord Forum

Asset Prefix and Image Loader

Unanswered
Peterbald posted this in #help-forum
Open in Discord
PeterbaldOP
Hello!

I want to prepend a domain to my images in Production (which works fine using Image Loader), but I also want to do the same for CSS files. Asset Prefix should handle this, but won't that also affect what Image Loader does? What I want to do is:

- Apply the prefix to all images in src and srcSet in Production
- Apply the prefix to all CSS assets in Production

What is the correct technique for this?

Thanks!

0 Replies