N
Nuxt5mo ago
Yaiko

Dynamic RuntimeConfig?

I have a site that has dynamic subdomains with a nginx reverse proxy. So in each request Nuxt renders the site with the local URL (http://localhost:3001), so I have to set the domain in the config app.cdnURL, the problem here is that the subdomain needs to be dynamic by the request (Like from the origin header), so I have no idea how to set this variable dynamically. Already tried with modules and plugins, but none worked. Does anyone knows how to fix this?, Thanks. https://github.com/nuxt/nuxt/discussions/27118
GitHub
Dynamic RuntimeConfig? · nuxt nuxt · Discussion #27118
I have a site that has dynamic subdomains with a nginx reverse proxy. So in each request Nuxt renders the site with the local URL (http://localhost:3001), so I have to set the domain in the config ...
2 Replies
dwol
dwol5mo ago
Have you tried the app.config?
Yaiko
Yaiko5mo ago
It won't work because this variable is only defined in the runtimeConfig.
Want results from more Discord servers?
Add your server