Lazy AppConfig?
Is there a way to have some kind of lazy app config? I would like to use defineAppConfig, but after the request comes in. Since my app uses subdomains, I would want different app configs based on the host requested.
4 Replies
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
Ended up using plugins
You can do something like:
Then in your page you can access the data using
useNuxtData
:
const { data: realm } = useNuxtData('realm');
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
either/both