Nuxt
Vue’s template compiler treats unknown tags as native custom elements without any compilerOptions.isCustomElement configuration — <nlq-data> is rendered untransformed.
Run it
Section titled “Run it”npx nuxi@latest init nlqdb-orderscd nlqdb-ordersReplace app.vue with the file in this folder, then:
echo "NUXT_PUBLIC_NLQDB_KEY=pk_live_yourkey" > .envnpm install && npm run devAdd the public runtime config in nuxt.config.ts:
export default defineNuxtConfig({ runtimeConfig: { public: { nlqdbKey: "" }, // overridden by NUXT_PUBLIC_NLQDB_KEY },});useHeadis the Nuxt-idiomatic way to inject a third-party<script>. It dedupes across navigations and SSRs cleanly.:api-keyuses the Vue dynamic-attribute syntax so the value flows from runtime config.- For Nuxt 4 the file is the same; the
app.vuelocation moves underapp/but the integration code is identical.
Live code
Section titled “Live code”Source on GitHub: examples/nuxt/.