X Enterprises

Configuration

app.config.ts and runtimeConfig reference for @xenterprises/nuxt-x-marketing.

Configuration

How to configure this module via app.config.ts and environment variables.

app.config.ts

export default defineAppConfig({
  xMarketing: {
    name: "X Enterprises",
    config: {
      markerProjectId: "", // Optional: Marker.io project ID for bug reporting
    },
  },
})

Schema Reference

KeyTypeDefaultDescription
xMarketing.namestring"X Enterprises"Brand/site name used across marketing components.
xMarketing.config.markerProjectIdstring""Marker.io project ID. When set, enables the Marker.io feedback widget. Leave empty to disable.

Runtime Config (Environment Variables)

VariableRequiredDescription
NUXT_PUBLIC_API_URLNoBase API URL consumed by the useXBlog() composable for blog data fetching.

Access the blog API URL at runtime:

const config = useRuntimeConfig()
config.public.apiURL  // used internally by useXBlog()

AI Context

package: "@xenterprises/nuxt-x-marketing"
config-key: xMarketing
use-when: >
  Customising the site name or enabling Marker.io bug reporting in the
  nuxt-x-marketing layer. Set NUXT_PUBLIC_API_URL when using the useXBlog()
  composable to fetch blog posts from an API.
Copyright © 2026