Configuration
app.config.ts and runtimeConfig reference for @xenterprises/nuxt-x-schema.
Configuration
app.config.ts
export default defineAppConfig({
xSchema: {
siteUrl: 'https://mysite.com',
siteName: 'My Site',
siteLogo: '/logo.png',
organizationName: 'My Company',
},
})
Schema Reference
| Key | Type | Default | Description |
|---|---|---|---|
siteUrl | string | undefined (runtime fallback https://example.com in useSchema) | Base URL used by useSchema().resolveUrl() to convert relative paths to absolute URLs for JSON-LD output. Set this in the consumer. |
siteName | string | undefined (runtime fallback My Website) | Default site/organization name used in publisher, Organization, and WebSite schemas. |
siteLogo | string | undefined | Logo URL included in getDefaultPublisher() as an ImageObject. |
organizationName | string | undefined | Organization name for Organization schema; falls back to siteName if omitted. |
Runtime Config / Environment Variables
None required. All configuration is via app.config.ts.
AI Context
package: "@xenterprises/nuxt-x-schema"
config-key: xSchema
useSchema
Shared utilities for Schema.org JSON-LD injection, URL resolution, and app.config defaults for publisher and organizer objects.
nuxt-x-cards
Premium card component library for Nuxt 4 — 12 auto-imported components with cinematic image filters, warm neutral surfaces, and WCAG AA accessible design.
