Static directory mapping doesn't work inside the dynamic route directory
I have to do a '../static/img.png' to make it work inside the post directory but
if the component is being imported from somewhere else and is used at multiple places(in other pages), there is no work around for that.
static should also work inside the dynamic routes directory.
Static mapping being? In general it's best to provide a full reproduction, now we have to guess what you did in particular. I assume you added src="static/img.png" instead of src="/static/img.png" 馃
Most helpful comment
Static mapping being? In general it's best to provide a full reproduction, now we have to guess what you did in particular. I assume you added
src="static/img.png"instead ofsrc="/static/img.png"馃