Skip to content

Commit

Permalink
Merge pull request #1840 from pkarw/develop
Browse files Browse the repository at this point in the history
Force SSR disable for my-account and checkout pages
  • Loading branch information
pkarw authored Oct 10, 2018
2 parents 5792173 + cb51035 commit 13554f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/pages/Checkout.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ export default {
asyncData ({ store, route, context }) { // this is for SSR purposes to prefetch data
return new Promise((resolve, reject) => {
if (context) context.output.cacheTags.add(`checkout`)
if (context) context.server.response.redirect('/')
resolve()
})
}
Expand Down
1 change: 1 addition & 0 deletions core/pages/MyAccount.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export default {
asyncData ({ store, route, context }) { // this is for SSR purposes to prefetch data
return new Promise((resolve, reject) => {
if (context) context.output.cacheTags.add(`my-account`)
if (context) context.server.response.redirect('/')
resolve()
})
}
Expand Down

0 comments on commit 13554f6

Please sign in to comment.