# Building a Portable Apollo Server Config

DevFeed: [Building a Portable Apollo Server Config](<https://devfeed.tech/articles/building-a-portable-apollo-server-config-23241.md>)

Original publisher: [Read original article](<https://www.apollographql.com/blog/building-a-portable-apollo-server-config>)

Author: Ben Teese

Published: 2020-08-17T11:06:57Z

Content type: tutorial

Language: en

Sources: [Apollo Blog](<https://devfeed.tech/sources/apollo-blog.md>)

Topics: [apollo-server](<https://devfeed.tech/topics/apollo-server.md>), [AWS Lambda](<https://devfeed.tech/topics/aws-lambda.md>), [Express](<https://devfeed.tech/topics/express.md>), [Node.js](<https://devfeed.tech/topics/node-js.md>), [Deployment](<https://devfeed.tech/topics/deployment.md>), [Development](<https://devfeed.tech/topics/development.md>), [Testing](<https://devfeed.tech/topics/testing.md>)

Tags: [apollo](<https://devfeed.tech/tags/apollo.md>), [aws](<https://devfeed.tech/tags/aws.md>), [aws-lambda](<https://devfeed.tech/tags/aws-lambda.md>), [backend](<https://devfeed.tech/tags/backend.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [development](<https://devfeed.tech/tags/development.md>), [express](<https://devfeed.tech/tags/express.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [node-js](<https://devfeed.tech/tags/node-js.md>), [testing](<https://devfeed.tech/tags/testing.md>)

## AI overview

This tutorial explains how to create a portable Apollo Server configuration that can be used with Express for local development and testing and with AWS Lambda for production deployment. It focuses on sharing schema, resolver, and environment-specific configuration without duplicating code.

## Source excerpt

One of the great things about Apollo Server is that there are lots of different Node.js middleware library integrations, and thus lots of different places you can run it. However, sometimes the best way to run Apollo Server in production isn't necessarily the best way to run it during local development or testing. For example, AWS Lambda functions are a fantastic place to run Apollo Server in production, as most of your deployment and scaling concerns are taken care of for you.