npm nuxt 0.3.7
v0.3.7

latest releases: 3.11.2, 3.11.1, 3.11.0...
7 years ago

Features

  • Remove the behaviour from the v0.3.6 for the static generation, now the page with a redirection is generated with an empty app telling nuxt that it has not been generated yet and to launch it from the client-side (the state for the store can be already filled)
  • Change redirect api, it's now: redirect([code,] path [, query]), the default status code is 302 Found
export default {
  data ({ redirect, route }) {
    // Check if user is connected via req.session or JWT...
    redirect('/login', { redirect: route.fullPath })
  }
}

Don't miss a new nuxt release

NewReleases is sending notifications on new releases.