You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on an analytics module, and I need a way to pass config to the app at runtime, not build-time. Currently, modules only accept build config.
Nuxt does this via a <srcDir>/app.config.ts file and I want to do the same, I think it's a good pattern. However, I'm not going to support everything nuxt does. For now, I want to add:
Detect the file, or default to {}
Allow for module augmentation to add to the config type
From wxt/client, provide useAppConfig helper function to access the config defined in app.config.ts.
Feature Request
I'm working on an analytics module, and I need a way to pass config to the app at runtime, not build-time. Currently, modules only accept build config.
Nuxt does this via a
<srcDir>/app.config.ts
file and I want to do the same, I think it's a good pattern. However, I'm not going to support everything nuxt does. For now, I want to add:{}
wxt/client
, provideuseAppConfig
helper function to access the config defined inapp.config.ts
.It will not support the following from nuxt:
.env
fileIs your feature request related to a bug?
#790
What are the alternatives?
A clear and concise description of any alternative solutions or features you've considered.
Additional context
https://nuxt.com/docs/guide/directory-structure/app-config
The text was updated successfully, but these errors were encountered: