Daniel Roe
Daniel Roe
This should be resolved in the latest version of Nuxt. You can run `nuxi upgrade` to pull it in.
@JonathanDoelan Could you clarify what you think should be the default behaviour?
@JonathanDoelan I don't think this is the right approach. I would instead simply create a plugin that - if in server mode - sets the `useCdn` option to false. Then...
@JonathanDoelan I don't think putting it inside `privateRuntimeConfig` is quite right given what you want to achieve. After all, this will hard code the `useCdn: false` into your generated pages...
I would instead simply create a plugin that - if in server mode - sets the useCdn option to false.
@JonathanDoelan At the moment you'd need to overwrite `$sanity.client` completely, but I think your approach (of just setting config) is more intuitive, so I'll refactor.
Seems to be working: https://stackblitz.com/github/stephenjason89/nuxt-bridge
@joffreyBerrier For now you should be able to use this as a workaround: ```js components: { loader: true } ``` (**Note**: not recommended nor guaranteed to always work.) A linked...
@schneefux It fixes the reproduction sandbox for me 🙂
FYI: eslint maintainers recommend using prettier for code formatting rather than eslint, and using [`eslint-config-prettier`](https://github.com/prettier/eslint-config-prettier) to disable formatting related rules within `eslint`. I'd advocate this approach as well, possibly also...