microcipcip / cookie-universal

Universal cookie plugin, perfect for SSR
524 stars 39 forks source link

Support for top level options and runtime config #115

Closed zoxon closed 2 years ago

zoxon commented 3 years ago

Please add support for top level option in nuxt config and for nuxt runtimeConfig For example

// nuxt.config.js
export default {
  modules: [
    'cookie-universal-nuxt',
  ],

  cookie: {
    // options
  }
}
// nuxt.config.js
export default {
  modules: [
    'cookie-universal-nuxt',
  ],

  publicRuntimeConfig: {
    cookie: {
      // options
    }
  }
}
stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.