Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sample
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周韬
node-sample
Commits
b92c559f
Commit
b92c559f
authored
Feb 14, 2021
by
Daniel Roe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: ssr errors
* cloudflare was responding to backend api calls with 503 and error wasn't handled
parent
c4b2c1e8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
utils.js
common/utils.js
+1
-1
_page.vue
pages/_feed/_page.vue
+3
-0
vercel.json
vercel.json
+1
-1
No files found.
common/utils.js
View file @
b92c559f
...
...
@@ -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
...
...
pages/_feed/_page.vue
View file @
b92c559f
...
...
@@ -78,6 +78,9 @@ export default {
},
mounted
()
{
if
(
!
this
.
pageData
.
length
)
{
this
.
$fetch
()
}
this
.
pageChanged
(
this
.
page
)
},
...
...
vercel.json
View file @
b92c559f
...
...
@@ -2,7 +2,7 @@
"builds"
:
[
{
"src"
:
"nuxt.config.js"
,
"use"
:
"@nuxtjs/
now
-builder"
"use"
:
"@nuxtjs/
vercel
-builder"
}
]
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment