Skip to content
This repository was archived by the owner on May 10, 2021. It is now read-only.

Commit 253e9f1

Browse files
committed
Update next to v9.5.3
No code changes are necessary to use next-on-netlify with NextJS 9.5.
1 parent 36df90f commit 253e9f1

11 files changed

+2043
-3374
lines changed

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"cypress": "^5.1.0",
3939
"jest": "^26.4.2",
4040
"netlify-cli": "^2.61.0",
41-
"next": "^9.4.4",
41+
"next": "^9.5.3",
4242
"react": "^16.13.1",
4343
"react-dom": "^16.13.1",
4444
"wait-on": "^5.2.0"

tests/__snapshots__/defaults.test.js.snap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ exports[`Routing creates Netlify redirects 1`] = `
55
/api/static /.netlify/functions/next_api_static 200
66
/getServerSideProps/static /.netlify/functions/next_getServerSideProps_static 200
77
/_next/data/%BUILD_ID%/getServerSideProps/static.json /.netlify/functions/next_getServerSideProps_static 200
8-
/index /.netlify/functions/next_index 200
98
/ /.netlify/functions/next_index 200
109
/static /static.html 200
1110
/404 /404.html 200

tests/__snapshots__/optionalCatchAll.test.js.snap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
exports[`Routing creates Netlify redirects 1`] = `
44
"# Next-on-Netlify Redirects
5-
/index /index.html 200
65
/ /index.html 200
76
/404 /404.html 200
87
/catch* /.netlify/functions/next_catch_all 200

tests/customNextDistDir.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ describe('Next', () => {
5353
test('builds successfully', () => {
5454
// NextJS output
5555
expect(BUILD_OUTPUT).toMatch("Creating an optimized production build...")
56-
expect(BUILD_OUTPUT).toMatch("Automatically optimizing pages...")
56+
expect(BUILD_OUTPUT).toMatch("Finalizing page optimization...")
5757
expect(BUILD_OUTPUT).toMatch("First Load JS shared by all")
5858

5959
// Next on Netlify output

tests/customRedirects.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ describe('Next', () => {
5959
test('builds successfully', () => {
6060
// NextJS output
6161
expect(BUILD_OUTPUT).toMatch("Creating an optimized production build...")
62-
expect(BUILD_OUTPUT).toMatch("Automatically optimizing pages...")
62+
expect(BUILD_OUTPUT).toMatch("Finalizing page optimization...")
6363
expect(BUILD_OUTPUT).toMatch("First Load JS shared by all")
6464

6565
// Next on Netlify output
@@ -79,6 +79,5 @@ describe('Routing',() => {
7979

8080
// Check that other routes are present
8181
expect(redirects).toContain("/ /index.html 200")
82-
expect(redirects).toContain("/index /index.html 200")
8382
})
8483
})

tests/defaults.test.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ describe('Next', () => {
5959
test('builds successfully', () => {
6060
// NextJS output
6161
expect(BUILD_OUTPUT).toMatch("Creating an optimized production build...")
62-
expect(BUILD_OUTPUT).toMatch("Automatically optimizing pages...")
62+
expect(BUILD_OUTPUT).toMatch("Finalizing page optimization...")
6363
expect(BUILD_OUTPUT).toMatch("First Load JS shared by all")
6464

6565
// Next on Netlify output
@@ -143,9 +143,8 @@ describe('Static Pages', () => {
143143
test('copies static assets to out_publish/_next/ directory', () => {
144144
const dirs = readdirSync(join(PROJECT_PATH, "out_publish", "_next", "static"))
145145

146-
expect(dirs.length).toBe(3)
146+
expect(dirs.length).toBe(2)
147147
expect(dirs).toContain("chunks")
148-
expect(dirs).toContain("runtime")
149148
})
150149
})
151150

tests/nextConfigFunction.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ describe('Next', () => {
5454
test('builds successfully', () => {
5555
// NextJS output
5656
expect(BUILD_OUTPUT).toMatch("Creating an optimized production build...")
57-
expect(BUILD_OUTPUT).toMatch("Automatically optimizing pages...")
57+
expect(BUILD_OUTPUT).toMatch("Finalizing page optimization...")
5858
expect(BUILD_OUTPUT).toMatch("First Load JS shared by all")
5959

6060
// Next on Netlify output

tests/optionalCatchAll.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ describe('Next', () => {
5555
test('builds successfully', () => {
5656
// NextJS output
5757
expect(BUILD_OUTPUT).toMatch("Creating an optimized production build...")
58-
expect(BUILD_OUTPUT).toMatch("Automatically optimizing pages...")
58+
expect(BUILD_OUTPUT).toMatch("Finalizing page optimization...")
5959
expect(BUILD_OUTPUT).toMatch("First Load JS shared by all")
6060

6161
// Next on Netlify output

tests/preRenderedIndexPages.test.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ describe('Next', () => {
5555
test('builds successfully', () => {
5656
// NextJS output
5757
expect(BUILD_OUTPUT).toMatch("Creating an optimized production build...")
58-
expect(BUILD_OUTPUT).toMatch("Automatically optimizing pages...")
58+
expect(BUILD_OUTPUT).toMatch("Finalizing page optimization...")
5959
expect(BUILD_OUTPUT).toMatch("First Load JS shared by all")
6060

6161
// Next on Netlify output
@@ -75,9 +75,8 @@ describe('Static Pages', () => {
7575
test('copies static assets to out_publish/_next/ directory', () => {
7676
const dirs = readdirSync(join(PROJECT_PATH, "out_publish", "_next", "static"))
7777

78-
expect(dirs.length).toBe(3)
78+
expect(dirs.length).toBe(2)
7979
expect(dirs).toContain("chunks")
80-
expect(dirs).toContain("runtime")
8180
})
8281
})
8382

@@ -104,7 +103,6 @@ describe('Routing',() => {
104103

105104
// Check that routes are present
106105
expect(redirects).toContain("/ /index.html 200")
107-
expect(redirects).toContain("/index /index.html 200")
108106
expect(redirects).toContain("/shows /shows.html 200")
109107
})
110108
})

0 commit comments

Comments
 (0)