#How to config qwik-speak to using data json from cdn?

8 messages · Page 1 of 1 (latest)

sterile flare
muted nexus
#

paging @velvet blade

sterile flare
#

please help me

#

🙏

velvet blade
sterile flare
sterile flare
#

@velvet blade thank your support, but I tried configuring loadAssets as you suggested, but it still doesn't solve the issue I'm facing. The decision on which asset URL to load depends on the lang parameter.
For example, when the request comes in with a header like request.headers.get('x-lang') = zh, I need to load assets from https://assets-dev.shopbase.net/checkout/assets/locales/gpt/zh.json. If it's en, then I need to fetch assets from https://assets-dev.shopbase.net/checkout/assets/locales/gpt/en.json.
This cannot be statically configured in vite.fastify.ts :(((