Skip to content

chore: remove netlify graph helper #2077

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions packages/runtime/src/templates/getHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,6 @@ const makeHandler = (conf: NextConfig, app, pageRoot, staticManifest: Array<[str
const query = new URLSearchParams(event.queryStringParameters).toString()
event.path = query ? `${event.path}?${query}` : event.path

const graphToken = event.netlifyGraphToken

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me @dwwoelfel. I believe this is the only place in the code we reference OneGraph.

if (graphToken && requestMode !== 'ssr') {
// Prefix with underscore to help us determine the origin of the token
// allows us to write better error messages
// eslint-disable-next-line no-underscore-dangle
process.env._NETLIFY_GRAPH_TOKEN = graphToken
}

const { headers, ...result } = await getBridge(event, context).launcher(event, context)

// Convert all headers to multiValueHeaders
Expand Down