Update config documentation. Promote to v1
This commit is contained in:
parent
7ed872ec05
commit
9c753e625b
3 changed files with 22 additions and 16 deletions
10
README.md
10
README.md
|
@ -27,9 +27,13 @@ You can enable Wide Angle Analytics in your Nuxt projects in just few steps. No
|
|||
export default defineNuxtConfig({
|
||||
modules: ['wideangle-nuxt'],
|
||||
|
||||
runtimeConfig: {
|
||||
public: {
|
||||
wideangle: {
|
||||
siteId: "8D27G3B9ACA01F4241"
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
```
|
||||
|
||||
|
@ -57,6 +61,8 @@ Example:
|
|||
export default defineNuxtConfig({
|
||||
modules: ['wideangle-nuxt'],
|
||||
|
||||
runtimeConfig: {
|
||||
public: {
|
||||
wideangle: {
|
||||
siteId: "8D27G3B9ACA01F4241",
|
||||
domain: "your.domain.com",
|
||||
|
@ -65,7 +71,9 @@ export default defineNuxtConfig({
|
|||
includeParams: ['q', 'customerId'],
|
||||
excludePaths: ['^/admin.*'],
|
||||
ignoreHash: true
|
||||
}u
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
```
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "wideangle-nuxt",
|
||||
"version": "0.0.1",
|
||||
"version": "1.0.0",
|
||||
"description": "Wide Angle Analytics module for Nuxt",
|
||||
"repository": "inputobjects/wideangle-nuxt",
|
||||
"author": "Wide Angle Analytics <developers@wideangle.co>",
|
||||
|
|
|
@ -31,10 +31,8 @@ export default defineNuxtModule<ModuleOptions>({
|
|||
},
|
||||
setup (options, nuxt) {
|
||||
const runtimeDir = fileURLToPath(new URL('./runtime', import.meta.url))
|
||||
nuxt.options.build.transpile.push(runtimeDir)
|
||||
|
||||
logger.info(`Module options: ${JSON.stringify(options)}`);
|
||||
const resolver = createResolver(import.meta.url)
|
||||
nuxt.options.build.transpile.push(runtimeDir);
|
||||
const resolver = createResolver(import.meta.url);
|
||||
|
||||
addImports({
|
||||
name: "useWaaEvent",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue