@hostlink/nuxt-vx
v1.0.36
Published
HostLink nuxt vx
Downloads
24
Readme
Nuxt Module
Development
- Run
npm run dev:prepare
to generate type stubs. - Use
npm run dev
to start playground in development mode.
Usage
app.ts
<vx>
<NuxtLoadingIndicator />
<NuxtPage/>
</vx>
nuxt.config.ts
export default defineNuxtConfig({
ssr: false,
modules: [
"@hostlink/nuxt-vx"
],
runtimeConfig: {
public: {
endpoint: '/api/'
}
},
vite:{
optimizeDeps: {
include: [
"element-plus",
"axios",
"qs",
"vue3-sfc-loader"
]
}
},
nitro: {
devProxy: {
'/api/': {
target: 'https://abc.project.hostink.com.hk/api/',
changeOrigin: true,
}
}
}
})