Skip to content

Commit b3275a1

Browse files
authored
chore: remove netlify graph helper (#2077)
1 parent b4cb75b commit b3275a1

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

packages/runtime/src/templates/getHandler.ts

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

119-
const graphToken = event.netlifyGraphToken
120-
if (graphToken && requestMode !== 'ssr') {
121-
// Prefix with underscore to help us determine the origin of the token
122-
// allows us to write better error messages
123-
// eslint-disable-next-line no-underscore-dangle
124-
process.env._NETLIFY_GRAPH_TOKEN = graphToken
125-
}
126-
127119
const { headers, ...result } = await getBridge(event, context).launcher(event, context)
128120

129121
// Convert all headers to multiValueHeaders

0 commit comments

Comments
 (0)