Skip to content

Commit 0a05b29

Browse files
Merge branch 'main' into mk/package-json-tidying
2 parents 262e2b7 + 11c9b73 commit 0a05b29

File tree

8 files changed

+1715
-775
lines changed

8 files changed

+1715
-775
lines changed

demos/canary/package-lock.json

Lines changed: 664 additions & 45 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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
"react-dom": "18.1.0"
1515
},
1616
"devDependencies": {
17-
"eslint": "8.16.0"
17+
"eslint": "8.22.0"
1818
}
1919
}

demos/next-auth/package-lock.json

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

demos/next-i18next/package-lock.json

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

demos/next-i18next/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"react-dom": "18.1.0"
1616
},
1717
"devDependencies": {
18-
"eslint": "8.14.0",
18+
"eslint": "8.22.0",
1919
"eslint-config-next": "12.2.4"
2020
}
2121
}

demos/nx-next-monorepo-demo/package-lock.json

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

demos/nx-next-monorepo-demo/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838
"@typescript-eslint/parser": "~5.10.0",
3939
"babel-jest": "27.4.6",
4040
"cypress": "^8.3.0",
41-
"eslint": "8.7.0",
41+
"eslint": "8.22.0",
4242
"eslint-config-next": "12.2.4",
43-
"eslint-config-prettier": "8.3.0",
43+
"eslint-config-prettier": "8.5.0",
4444
"eslint-plugin-cypress": "^2.10.3",
4545
"eslint-plugin-import": "2.25.4",
4646
"eslint-plugin-jsx-a11y": "6.5.1",

packages/runtime/src/templates/getHandler.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,14 @@ const makeHandler = (conf: NextConfig, app, pageRoot, staticManifest: Array<[str
101101
const query = new URLSearchParams(event.queryStringParameters).toString()
102102
event.path = query ? `${event.path}?${query}` : event.path
103103

104+
const graphToken = event.netlifyGraphToken
105+
if (graphToken && requestMode !== 'ssr') {
106+
// Prefix with underscore to help us determine the origin of the token
107+
// allows us to write better error messages
108+
// eslint-disable-next-line no-underscore-dangle
109+
process.env._NETLIFY_GRAPH_TOKEN = graphToken
110+
}
111+
104112
const { headers, ...result } = await getBridge(event).launcher(event, context)
105113

106114
// Convert all headers to multiValueHeaders

0 commit comments

Comments
 (0)