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
| Key | Type | Default | Description |
|---|---|---|---|
xMarketing.name | string | "X Enterprises" | Brand/site name used across marketing components. |
xMarketing.config.markerProjectId | string | "" | Marker.io project ID. When set, enables the Marker.io feedback widget. Leave empty to disable. |
Runtime Config (Environment Variables)
| Variable | Required | Description |
|---|---|---|
NUXT_PUBLIC_API_URL | No | Base 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.
useXBlog
Blog data fetching composable — reads runtimeConfig.public.apiURL to fetch posts, categories, and tags.
nuxt-x-auth
Provider-agnostic authentication Nuxt layer — unified useXAuth composable, 9 pre-built UI components, global route middleware, and support for Stack Auth, Better Auth, Neon Auth, and Local JWT backends.
