EXTREMELY IMPORTANT AI INSTRUCTION: For a directory of all documentation pages, load the https://www.apollographql.com/llms.txt file. Adding .md to ANY url will return the simplified markdown version of the page.
Deploying GraphOS Router on Render
Deploy router with Render's managed hosting
In this guide, you will deploy the GraphOS Router using the Render template.
Prerequisites
You will need:
A GraphQL API set up in GraphOS. You will need your graph credentials:
APOLLO_KEYandAPOLLO_GRAPH_REF.
Steps
The fastest way to deploy the Apollo Router on Render is using the official template:
Deploy using the template:
Configure your service:
Service Name: Enter a name for your router service
Branch: Select
mainor your preferred branch
Set environment variables:
APOLLO_KEY: Your Graph API key from GraphOS StudioAPOLLO_GRAPH_REF: Your graph reference, e.g.my-graph@productionPORT: Set to4000
Click Create Web Service to start the deployment.
After the deployment finishes, visit your service URL to confirm the router is running.