A few weeks back, we received a request on our public Slack channel to consider Vercel support, allowing Inigo’s middleware to run as part of Vercel Route. We decided to act on it, and this post describes the steps we took to add Inigo middleware support for Apollo Server JS running on Vercel—and what this means for our customers.
At Inigo, our mission is to simply manage GraphQL workflows for developers. We’re excited to announce our latest milestone: support for Vercel, enabling seamless integration of Inigo's JavaScript middleware with Vercel’s powerful serverless platform. Vercel is a leader in serverless hosting and the company behind Next.js, the most popular framework for React. Supporting Vercel ensures developers can leverage Inigo’s capabilities in a cost-effective and cutting-edge environment.
Vercel is more than just a serverless platform—it’s a cornerstone of modern web development. Here's why supporting Vercel became a priority for us:
Supporting Vercel required thoughtful adaptations to our middleware and tooling. Here’s what we delivered:
We had updated our integration in order to align seamlessly with Next.js’ features:
Post-Response Processing of Requests: Vercel’s serverless platform does not support termination signals for background processing once a request completes. We were unable to utilize Termination Signals due to how containers are managed. This prevents any background processing after a request has been completed by immediately freezing the container if no subsequent calls are made to the same route. To address this, we leveraged Vercel’s waitUntil
function, which allows analytics data to flush even after the request lifecycle ends (See waitUntil)
Middleware for Post-Response Events: Since Vercel lacks traditional shutdown signals, we forked apollo-server-integration-next
to enable waitUntil
functionality in multiple areas, allowing developers to execute custom code after responses are dispatched (See github).
To accelerate onboarding, we created a sample project (github) showcasing integration with:
We’re excited about this integration and committed to making it even better:
Our Vercel support ensures developers can combine the power of Inigo with the simplicity of serverless hosting. Ready to try it out? Explore our sample project and start enhancing your GraphQL workflows today.
With this integration, Inigo continues to make GraphQL workflows faster, simpler, and more scalable. Whether you’re leveraging Vercel’s cutting-edge platform or managing a multi-cloud environment, Inigo is here to optimize your GraphQL development experience.
Happy GraphQL-ing, The Inigo Team