Open tberk opened 8 months ago
Hi, thanks for the issue (sorry for the delay). This is a great question.
Technically you should just be able to do storage.mount('/cache/nuxt-og-image', driver)
(the default cache path) within your runtime config and omit runtimeCacheStorage
if you want to configure it like that.
Is there any particular reason you're creating the driver yourself instead of just doing it in the config though?
Hello, thanks for the answer.
The reason is the same actually, to get the runtime config when creating the driver. Here is the reference: https://nitro.unjs.io/guide/storage#runtime-configuration
Hello currently I set runtime cache storage as so:
I also have a nitro plugin to register redis storage (Independent of og:image config)
Module works fine with above config however I was wondering if there is a better way of doing it.