#Dynamic RuntimeConfig?

1 messages · Page 1 of 1 (latest)

honest vine
#

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

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 ...

lofty isle
#

Have you tried the app.config?