Skip to content

API > wxt/sandbox > defineAppConfig

Function: defineAppConfig()

defineAppConfig(config): WxtAppConfig

Runtime app config defined in <srcDir>/app.config.ts.

You can add fields to this interface via "Module Augmentation":

ts
// app.config.ts
import 'wxt/sandbox';

declare module "wxt/sandbox" {
  export interface WxtAppConfig {
    analytics: AnalyticsConfig
  }
}

Parameters

config: WxtAppConfig

Source

packages/wxt/src/sandbox/define-app-config.ts:19


Generated using typedoc-plugin-markdown and TypeDoc