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) => { ...@@ -6,7 +6,7 @@ export const lazy = (commit, task, optimistic, enabled) => {
// Non lazy mode // Non lazy mode
if (!enabled) { if (!enabled) {
return task().then(commit) return task().then(commit).catch(console.error) // eslint-disable-line no-console
} }
// Do real task in background // Do real task in background
......
...@@ -78,6 +78,9 @@ export default { ...@@ -78,6 +78,9 @@ export default {
}, },
mounted () { mounted () {
if (!this.pageData.length) {
this.$fetch()
}
this.pageChanged(this.page) this.pageChanged(this.page)
}, },
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"builds": [ "builds": [
{ {
"src": "nuxt.config.js", "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