X Enterprises

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

KeyTypeDefaultDescription
runtimeConfig.public.x.app.apiUrlstringundefinedBase API URL exposed to the client.
runtimeConfig.public.x.app.pdfLicensestringundefinedLicense 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
VariableRequiredDescription
NUXT_PUBLIC_X_APP_API_URLNoBase API URL exposed to the client. Accessed via useRuntimeConfig().public.x.app.apiUrl.
NUXT_PUBLIC_X_APP_PDF_LICENSENoLicense 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
Copyright © 2026