Configuration
app.config.ts and runtimeConfig reference for @xenterprises/nuxt-x-app.
Configuration
How to configure this module via nuxt.config.ts and environment variables.
nuxt.config.ts
nuxt-x-app has no app.config.ts keys of its own. All configuration is done via runtimeConfig in nuxt.config.ts:
// nuxt.config.ts
export default defineNuxtConfig({
extends: ["@xenterprises/nuxt-x-app"],
runtimeConfig: {
public: {
x: {
app: {
apiUrl: process.env.NUXT_PUBLIC_X_APP_API_URL,
pdfLicense: process.env.NUXT_PUBLIC_X_APP_PDF_LICENSE,
},
},
},
},
})
Schema Reference
| Key | Type | Default | Description |
|---|---|---|---|
runtimeConfig.public.x.app.apiUrl | string | undefined | Base API URL exposed to the client. |
runtimeConfig.public.x.app.pdfLicense | string | undefined | License key for PDF generation features. |
Runtime Config
Access these values at runtime via useRuntimeConfig():
const config = useRuntimeConfig()
config.public.x.app.apiUrl // Base API URL
config.public.x.app.pdfLicense // PDF license key
| Variable | Required | Description |
|---|---|---|
NUXT_PUBLIC_X_APP_API_URL | No | Base API URL exposed to the client. Accessed via useRuntimeConfig().public.x.app.apiUrl. |
NUXT_PUBLIC_X_APP_PDF_LICENSE | No | License key for PDF features. Accessed via useRuntimeConfig().public.x.app.pdfLicense. |
AI Context
package: "@xenterprises/nuxt-x-app"
config-key: runtimeConfig.public.x.app
use-when: Configuring the base API URL or PDF license key for the nuxt-x-app layer
useColumns
Derives reactive table column definitions from a schema descriptor, with support for visibility toggling and ordering.
nuxt-x-restaurants
Restaurant directory Nuxt layer — 48+ components for listing, filtering, and profile pages, plus composables for API integration, filtering, and menu cards.
