@asset directive not working in staging server

I’m inserting images this way:

<img src="@asset('images/youtube.svg')">

Th rendered HTML in local is fine:

<img src="http://localhost:3000/app/themes/sage/public/images/youtube.svg">

But in staging the HTML rendered is this:

<img src="@asset('images/youtube.svg')">

Any idea?

Looks like your blades aren’t being processed.

1 Like

I’ve resolved with sage-svg and it works:


Templates are being processed.