Open philippemiguet opened 5 years ago
How would that work with Buffer component library?
I'm guessing that the components in our shared library won't require images or static assets to work. I think they would likely allow for the engineer to pass any static file via props. Other components may just use in-line svg's to reduce the number of dependencies. For example:
<Avatar image={staticURL('something.jpg')} />
That's right, it will work well with low-level components. It can be true as well for more complex feature-like components 👍
Purpose
From this discussion, implement a client side version to be used and free the engineers from uploading manually the assets.
Idea
And in the application:
We could even take this a step further and make some of this more automatic with a piece of express middleware that injects the
staticAssetBaseURL
intores.locals
but that may be a bit overkill for now 😁Question
How would that work with Buffer component library?