Commit b92c559f authored by Daniel Roe's avatar Daniel Roe

fix: ssr errors

* cloudflare was responding to backend api calls with 503 and error wasn't handled
parent c4b2c1e8
......@@ -6,7 +6,7 @@ export const lazy = (commit, task, optimistic, enabled) => {
// Non lazy mode
if (!enabled) {
return task().then(commit)
return task().then(commit).catch(console.error) // eslint-disable-line no-console
}
// Do real task in background
......
......@@ -78,6 +78,9 @@ export default {
},
mounted () {
if (!this.pageData.length) {
this.$fetch()
}
this.pageChanged(this.page)
},
......
......@@ -2,7 +2,7 @@
"builds": [
{
"src": "nuxt.config.js",
"use": "@nuxtjs/now-builder"
"use": "@nuxtjs/vercel-builder"
}
]
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment