Next.js + Relay Example
The Next.js + Relay example demonstrates how to use Relay with a Next.js based WunderGraph project.
First, run the development server:
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying
pages/index.tsx. The page auto-updates as you edit the file.
Using WunderGraph with SSR
Create the utility functions needed to work with Relay
In your pages, use
getServerSideProps to fetch data on the server
Learn more about WunderGraph + Relay
To learn more about WunderGraph Relay integration, read our Quickstart Guide
Learn More about Next.js
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!