Skip to content

Commit 6bdee93

Browse files
authored
Merge branch 'main' into rs/isr-i18n-homepage
2 parents 1dd7c26 + 3f35549 commit 6bdee93

File tree

91 files changed

+16901
-13003
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+16901
-13003
lines changed

.github/workflows/e2e-next.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Next.js e2e test suite
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
8+
jobs:
9+
test:
10+
name: E2E tests
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Installing with LTS Node.js
15+
uses: actions/setup-node@v2
16+
with:
17+
node-version: 'lts/*'
18+
- name: NPM Install
19+
run: npm install
20+
- name: Run Next.js e2e test suite
21+
run: npm run test:next
22+
env:
23+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_BOT_AUTH_TOKEN }}
24+
NETLIFY_SITE_ID: 1d5a5c76-d445-4ae5-b694-b0d3f2e2c395

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"packages/runtime": "4.28.6",
2+
"packages/runtime": "4.29.1",
33
"packages/next": "1.4.0"
44
}

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,14 @@ If you currently use redirects or rewrites on your site, see
138138
information on changes to how they are handled in this version. In particular, note that `_redirects` and `_headers`
139139
files must be placed in `public`, not in the root of the site.
140140

141+
## Using with pnpm
142+
If your site uses pnpm to manage dependencies, currently you must [enable public hoisting](https://pnpm.io/npmrc#public-hoist-pattern).
143+
The simplest way to do this is to create a `.npmrc` file in the root of your project with the content:
144+
145+
```ini
146+
public-hoist-pattern[]=*
147+
```
148+
141149
## Feedback
142150

143151
If you think you have found a bug in Next.js on Netlify,

cypress/integration/middleware/enhanced.spec.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,15 @@ describe('Enhanced middleware', () => {
2525
.that.includes('This was static but has been transformed in')
2626
})
2727
})
28+
29+
it('adds geo data', () => {
30+
cy.request('/api/geo').then((response) => {
31+
expect(response.body).to.have.nested.property('headers.x-geo-country')
32+
expect(response.body).to.have.nested.property('headers.x-geo-region')
33+
expect(response.body).to.have.nested.property('headers.x-geo-city')
34+
expect(response.body).to.have.nested.property('headers.x-geo-longitude')
35+
expect(response.body).to.have.nested.property('headers.x-geo-latitude')
36+
expect(response.body).to.have.nested.property('headers.x-geo-timezone')
37+
})
38+
})
2839
})

demos/base-path/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"typescript": "^4.6.3"
1414
},
1515
"dependencies": {
16-
"next": "^13.0.0"
16+
"next": "^13.0.3"
1717
},
1818
"scripts": {
1919
"test": "echo \"Error: no test specified\" && exit 1"

demos/canary/package-lock.json

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

demos/canary/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
},
1111
"dependencies": {
1212
"next": "^12.3.1",
13-
"react": "18.1.0",
14-
"react-dom": "18.1.0"
13+
"react": "^18.2.0",
14+
"react-dom": "^18.2.0"
1515
},
1616
"devDependencies": {
1717
"@netlify/plugin-nextjs": "*",

demos/custom-routes/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"typescript": "^4.7.4"
1515
},
1616
"dependencies": {
17-
"next": "^13.0.0"
17+
"next": "^13.0.3"
1818
},
1919
"scripts": {
2020
"build": "next build",

demos/default/hello.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
world

demos/default/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@
1818
},
1919
"homepage": "https://github.com/netlify/next-runtime#readme",
2020
"dependencies": {
21+
"@netlify/next": "*",
2122
"@reach/dialog": "^0.16.2",
2223
"@reach/visually-hidden": "^0.16.0",
23-
"@vercel/og": "^0.0.15",
24-
"next": "^13.0.0",
25-
"react": "^18.0.0",
26-
"react-dom": "^18.0.0"
24+
"@vercel/og": "^0.0.20",
25+
"next": "^13.0.3",
26+
"react": "^18.2.0",
27+
"react-dom": "^18.2.0"
2728
},
2829
"devDependencies": {
2930
"@netlify/plugin-nextjs": "*",

0 commit comments

Comments
 (0)