Vite inlines imported small assets (<4kb) by default. This creates issues with our favicon and the default CSP value, which does not allow img-src data:.
I'm opting for the last option here since it works for all the links in the app and doesn't introduce new unknown syntax for users.
Happy to change it though if something else makes more sense.
We could add this option to our CLI / plugins but I think it's better if the user has it in the config directly?
Vite inlines imported small assets (<4kb) by default. This creates issues with our favicon and the default CSP value, which does not allow
img-src data:
.We could:
data:
in the CSP.public
and start to prepend the[import.meta.env.BASE_PATH
variable](https://vitejs.dev/guide/build.html#public-base-path) manually in Remix'links
.I'm opting for the last option here since it works for all the links in the app and doesn't introduce new unknown syntax for users. Happy to change it though if something else makes more sense.
We could add this option to our CLI / plugins but I think it's better if the user has it in the config directly?