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 is302
Found
export default {
data ({ redirect, route }) {
// Check if user is connected via req.session or JWT...
redirect('/login', { redirect: route.fullPath })
}
}