Skip to content

Commit 29d9aa1

Browse files
authored
Merge pull request #54 from contentstack/staging
Staging
2 parents f60f3fc + 62df1b0 commit 29d9aa1

File tree

8 files changed

+9468
-812
lines changed

8 files changed

+9468
-812
lines changed

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"extends": [
77
"eslint:recommended",
88
"plugin:react/recommended",
9-
"extends: next/core-web-vitals"
9+
"next/core-web-vitals"
1010
],
1111
"parserOptions": {
1212
"ecmaFeatures": {

next.config.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
const withPWA = require('next-pwa');
1+
const withPWA = require('next-pwa')({
2+
dest: 'public'
3+
});
24

35
const config = {
46
publicRuntimeConfig: {
@@ -17,12 +19,6 @@ const config = {
1719
CONTENTSTACK_LIVE_EDIT_TAGS:
1820
process.env.CONTENTSTACK_LIVE_EDIT_TAGS || 'false',
1921
},
20-
devIndicators: {
21-
autoPrerender: false,
22-
},
23-
pwa: {
24-
dest: 'public',
25-
},
2622
};
2723
module.exports =
28-
process.env.NODE_ENV === 'development' ? config : withPWA(config);
24+
process.env.NODE_ENV === 'development' ? config : withPWA(config);

package-lock.json

Lines changed: 800 additions & 788 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11
{
22
"name": "contentstack-nextjs-starter-app",
33
"description": "A starter app for Contentstack and Nextjs",
4-
"version": "2.0.2",
4+
"version": "2.0.3",
55
"private": true,
66
"author": "Contentstack",
77
"scripts": {
88
"dev": "next dev",
99
"build": "next build",
1010
"start": "next start",
11-
"lint": "eslint pages/**/*.jsx"
11+
"lint": "next lint"
1212
},
1313
"dependencies": {
14-
"@contentstack/live-preview-utils": "^1.1.0",
14+
"@contentstack/live-preview-utils": "^1.2.1",
1515
"@contentstack/utils": "^1.1.2",
16-
"contentstack": "^3.15.2",
17-
"html-react-parser": "^1.4.14",
18-
"moment": "^2.29.3",
19-
"next": "12.1.6",
20-
"next-pwa": "^5.5.4",
16+
"contentstack": "^3.15.3",
17+
"html-react-parser": "^3.0.4",
18+
"moment": "^2.29.4",
19+
"next": "^12.3.1",
20+
"next-pwa": "^5.6.0",
2121
"nprogress": "^0.2.0",
2222
"react": "^18.2.0",
2323
"react-dom": "^18.2.0",
2424
"react-json-view": "^1.21.3",
2525
"react-loading-skeleton": "^3.1.0"
2626
},
2727
"devDependencies": {
28-
"@types/node": "18.0.0",
28+
"@types/node": "^18.7.18",
2929
"@types/nprogress": "^0.2.0",
30-
"@types/react": "18.0.12",
31-
"@types/react-dom": "18.0.5",
32-
"eslint": "8.17.0",
33-
"eslint-config-next": "12.1.6",
34-
"typescript": "4.7.3"
30+
"@types/react": "^18.0.20",
31+
"@types/react-dom": "^18.0.6",
32+
"eslint": "^8.23.1",
33+
"eslint-config-next": "^12.3.1",
34+
"typescript": "^4.8.3"
3535
}
3636
}

pages/_document.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class MyDocument extends Document {
3333
src='https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js'
3434
integrity='sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM'
3535
crossOrigin='anonymous'
36+
defer
3637
/>
3738
<link rel='manifest' href='/manifest.json' />
3839
<link href='/favicon.ico' rel='icon' type='image/ico' sizes='16x16' />

0 commit comments

Comments
 (0)