Skip to content

Commit

Permalink
Fix ISR (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexieyizhe authored Dec 17, 2020
1 parent 283ce14 commit c4ba05b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 35 deletions.
30 changes: 1 addition & 29 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,19 @@
"version": "2020.12.4",
"license": "MIT",
"scripts": {
"dev": "cross-env NODE_ENV=development next",
"start": "next dev",
"lint": "eslint src --fix",
"type-check": "tsc --noEmit",
"analyze": "ANALYZE=true next build",
"build": "cross-env NODE_ENV=production next build && next export -o build",
"start": "cross-env NODE_ENV=production next start"
"analyze": "ANALYZE=true npm run build",
"build": "next build",
"serve": "next start"
},
"devDependencies": {
"@types/ioredis": "^4.17.8",
"@types/node": "^14.14.14",
"@types/react": "^17.0.0",
"@typescript-eslint/eslint-plugin": "^4.10.0",
"@typescript-eslint/parser": "^4.10.0",
"cross-env": "^7.0.2",
"eslint": "^7.15.0",
"eslint-config-preact": "^1.1.3",
"eslint-config-prettier": "^7.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export async function getStaticProps() {
currentTimeZone,
customStatus,
},
revalidate: 60, // regenerate page at most every minute
revalidate: 10, // regenerate page at most every 10 seconds
};
}

Expand Down

0 comments on commit c4ba05b

Please sign in to comment.