showing results for - "nuxt run script only client side"
Valeria
21 Oct 2019
1function (context) {
2  // Universal keys
3  const {
4    app,
5    store,
6    route,
7    params,
8    query,
9    env,
10    isDev,
11    isHMR,
12    redirect,
13    error,
14    $config
15  } = context
16  // Server-side
17  if (process.server) {
18    const { req, res, beforeNuxtRender } = context
19  }
20  // Client-side
21  if (process.client) {
22    const { from, nuxtState } = context
23  }
24}
25