Skip to content
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

Yoga Next.js Edge #62

Open
mishushakov opened this issue May 2, 2023 · 1 comment
Open

Yoga Next.js Edge #62

mishushakov opened this issue May 2, 2023 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@mishushakov
Copy link
Member

mishushakov commented May 2, 2023

export const config = {
  runtime: 'edge'
}

export const schema = buildSchema({ g, resolvers })

// Next.JS + Yoga API
const yoga = createYoga({
  schema,
  graphqlEndpoint: '/api/graphql'
})

export default yoga.handleRequest
@mishushakov mishushakov added the documentation Improvements or additions to documentation label May 2, 2023
@Manubi
Copy link

Manubi commented May 9, 2023

Just wanted to let you guys know that this is really neat and this is exactly what i was looking for! :)
awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants