Static GitHub Issues

[652] Make context available on $nuxt

prev: `js$` hard-coded in store.js so can't create `store.ts` for TypeScript
next: Window is not defined when store is activated

Nuxt is picking up and some vue plugins (mine for example) would like to know if they're being run inside nuxt and change their behavior accordingly. Since the context object provides necessary info (headers, request params) usually taken from the browser, it would be nice to have the context object available as vm.$nuxt.context

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c565">#c565</a>)</em></sub></div>