Skip to content

Commit 9609a16

Browse files
authored
Merge branch 'main' into renovate/netlify-ipx-1.x
2 parents d562bc8 + 62a4ce4 commit 9609a16

File tree

20 files changed

+45295
-1581
lines changed

20 files changed

+45295
-1581
lines changed

.github/workflows/cypress-demo-nx.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
containers: [1, 2, 3, 4, 5, 6]
19+
containers: [1, 2, 3, 4]
2020
steps:
2121
- name: Checkout
2222
uses: actions/checkout@v2
@@ -63,6 +63,8 @@ jobs:
6363
record: true
6464
parallel: true
6565
config-file: cypress/config/nx-demo.json
66+
group: 'Next Plugin - Demo NX'
67+
spec: cypress/integration/nx/*
6668
env:
6769
DEBUG: '@cypress/github-action'
6870
CYPRESS_baseUrl: ${{ steps.deploy.outputs.origin-url }}

.github/workflows/cypress-demo-static.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
containers: [1, 2, 3, 4, 5, 6]
19+
containers: [1, 2, 3, 4]
2020
steps:
2121
- name: Checkout
2222
uses: actions/checkout@v2
@@ -63,6 +63,8 @@ jobs:
6363
record: true
6464
parallel: true
6565
config-file: cypress/config/static-root.json
66+
group: 'Next Plugin - Demo Static'
67+
spec: cypress/integration/static-root/*
6668
env:
6769
DEBUG: '@cypress/github-action'
6870
CYPRESS_baseUrl: ${{ steps.deploy.outputs.origin-url }}

.github/workflows/cypress-demo.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
containers: [1, 2, 3, 4, 5, 6]
19+
containers: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
2020
steps:
2121
- name: Checkout
2222
uses: actions/checkout@v2
@@ -63,6 +63,8 @@ jobs:
6363
record: true
6464
parallel: true
6565
config-file: cypress/config/ci.json
66+
group: 'Next Plugin - Demo'
67+
spec: cypress/integration/default/*
6668
env:
6769
DEBUG: '@cypress/github-action'
6870
CYPRESS_baseUrl: ${{ steps.deploy.outputs.origin-url }}

.github/workflows/test.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,30 @@ jobs:
3535
if: "${{ matrix.node-version == '*' }}"
3636
- name: Run tests against next@latest
3737
run: npm test
38+
canary:
39+
name: Unit tests (Canary)
40+
runs-on: ${{ matrix.os }}
41+
42+
strategy:
43+
matrix:
44+
os: [ubuntu-latest, macOS-latest, windows-latest]
45+
node-version: [12, '*']
46+
exclude:
47+
- os: macOS-latest
48+
node-version: 12
49+
- os: windows-latest
50+
node-version: 12
51+
fail-fast: false
52+
53+
steps:
54+
- uses: actions/checkout@v2
55+
- name: Use Node.js ${{ matrix.node-version }}
56+
uses: actions/setup-node@v2
57+
with:
58+
node-version: ${{ matrix.node-version }}
59+
check-latest: true
60+
- name: NPM Install
61+
run: npm ci
3862
- name: Install Next.js Canary
3963
run: npm install -D next@canary --legacy-peer-deps
4064
- name: Run tests against next@canary

CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,41 @@
11
# Changelog
22

3+
### [4.3.2](https://github.com/netlify/netlify-plugin-nextjs/compare/v4.3.1...v4.3.2) (2022-04-04)
4+
5+
6+
### Bug Fixes
7+
8+
* :bug: include terser bundle into netlify functions ([#1295](https://github.com/netlify/netlify-plugin-nextjs/issues/1295)) ([f29adf3](https://github.com/netlify/netlify-plugin-nextjs/commit/f29adf3ee1d4be8bf40e4695ca4ac1e970c9b1ad))
9+
10+
### [4.3.1](https://github.com/netlify/netlify-plugin-nextjs/compare/v4.3.0...v4.3.1) (2022-03-28)
11+
12+
13+
### Bug Fixes
14+
15+
* correctly find site root when using SSR with Nx ([#1281](https://github.com/netlify/netlify-plugin-nextjs/issues/1281)) ([3b26573](https://github.com/netlify/netlify-plugin-nextjs/commit/3b26573407c44a3f6405db776d9d37d993761c1c))
16+
17+
## [4.3.0](https://github.com/netlify/netlify-plugin-nextjs/compare/v4.2.8...v4.3.0) (2022-03-23)
18+
19+
20+
### Features
21+
22+
* allow skipping of middleware handling ([#1277](https://github.com/netlify/netlify-plugin-nextjs/issues/1277)) ([63070da](https://github.com/netlify/netlify-plugin-nextjs/commit/63070daaff4082a756af881a382c238c37d07aec))
23+
24+
25+
### Bug Fixes
26+
27+
* **deps:** update dependency @vercel/node-bridge to v2.2.0 ([#1246](https://github.com/netlify/netlify-plugin-nextjs/issues/1246)) ([3637fff](https://github.com/netlify/netlify-plugin-nextjs/commit/3637fffce8550b012c8c9f35a0b9f3d1672e90a2))
28+
29+
### [4.2.8](https://github.com/netlify/netlify-plugin-nextjs/compare/v4.2.7...v4.2.8) (2022-03-21)
30+
31+
32+
### Bug Fixes
33+
34+
* add new /trace to HIDDEN_PATHS ([#1259](https://github.com/netlify/netlify-plugin-nextjs/issues/1259)) ([84345a8](https://github.com/netlify/netlify-plugin-nextjs/commit/84345a8c27f12bf1a07d1fc83cff9b9a398ee9db))
35+
* chdir to site root ([#1265](https://github.com/netlify/netlify-plugin-nextjs/issues/1265)) ([8463bbc](https://github.com/netlify/netlify-plugin-nextjs/commit/8463bbcff483ddb6b14e73c6959092e2938cdef1))
36+
* **deps:** update dependency @netlify/ipx to ^0.0.10 ([#1237](https://github.com/netlify/netlify-plugin-nextjs/issues/1237)) ([16e067d](https://github.com/netlify/netlify-plugin-nextjs/commit/16e067d7ef16da0479d83d09b188838e66946c34))
37+
* use correct publishDir when building from CLI with cwd option ([#1264](https://github.com/netlify/netlify-plugin-nextjs/issues/1264)) ([e441c97](https://github.com/netlify/netlify-plugin-nextjs/commit/e441c970f3c7ce5c6e74a23cf55efe71d94c9027))
38+
339
### [4.2.7](https://github.com/netlify/netlify-plugin-nextjs/compare/v4.2.6...v4.2.7) (2022-02-18)
440

541

cypress/integration/default/preview.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ describe('Preview Mode', () => {
22
it('enters and exits preview mode', () => {
33
// preview mode is off by default
44
cy.visit('/previewTest')
5-
cy.findByText('Is preview? No')
5+
cy.findByText('Is preview? No', {selector: 'h1'})
66

77
// enter preview mode
88
cy.request('/api/enterPreview').then((response) => {

demos/default/pages/api/hello.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
22

33
export default (req, res) => {
4-
res.status(200).json({ name: 'John Doe', query: req.query, env: process.env.HELLO_WORLD })
4+
res.status(200).json({ name: 'John Doe', query: req.query, env: process.env.HELLO_WORLD, cwd: process.cwd() })
55
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
2+
3+
export default function handler(req, res) {
4+
res.status(200).json({
5+
body: 'Hello world',
6+
});
7+
}

0 commit comments

Comments
 (0)