JulianMar / nuxt-bugsnag

Bugsnag module for nuxt.js
MIT License
49 stars 19 forks source link

Documentation #47

Closed CareTiger closed 1 year ago

CareTiger commented 1 year ago

Hello Julian -

I am interested in using this module but the documentation is not clear where the options go? do i create a separate config file or do they go into nuxt.config? I tried putting them into nuxt.config and it doesn't work.

Thanks

JulianMar commented 1 year ago

Hey, you can try these settings here. you should just put it in the nuxt.config.ts file https://github.com/JulianMar/nuxt-bugsnag#config-example

CareTiger commented 1 year ago

error

JulianMar commented 1 year ago

do you have the module in the module folder? can you try running npm run dev? It should generate the types Attached is a screenshot of my usage. Screenshot 2023-05-11 at 16 18 12

CareTiger commented 1 year ago
"dependencies": {
    "@nuxtjs/tailwindcss": "^6.6.8",
    "@storyblok/nuxt": "^5.4.4",
    "nuxt-bugsnag": "^5.9.2",
    "vue-final-modal": "^4.4.2",
    "zod": "^3.21.4"
}
CareTiger commented 1 year ago
modules: [
    [
        '@storyblok/nuxt',
        {
            accessToken: process.env.STORYBLOK_API_TOKEN,
            devtools: true,
            apiOptions: {
                cache: { type: 'memory' },
                region: 'us', // region code here
            },
        },
    ],
    '@nuxtjs/tailwindcss',
    '@nuxt/image-edge',
    '@nuxt/devtools',
    '@nuxtjs/supabase',
    'nuxt-icon',
    '@nuxtjs/google-fonts',
    'nuxt-vitest',
    'nuxt-bugsnag',
    // "nuxt-security" // only for SSG apps. we are doing static generation with nitro
],
CareTiger commented 1 year ago

worked! thank you