Remix adapter for the Serverless framework
Remix Serverless is an adapter that allows developers to use the Serverless framework with Remix, as an alternative to the built-in Architect framework adapter. It provides the flexibility to use REST API Gateway instead of the enforced HTTP API Gateway. Additionally, it enables the deployment of the web client using the Serverless framework and supports the new composite functionality of the Serverless framework along with other Serverless framework stacks.
To install and use Remix Serverless, follow these steps:
// Add dependencies here
server.js file in the root directory:// Modify server.js here
remix.config.js file:// Modify remix.config.js here
serverless.yaml file with the following configuration:# Add serverless.yaml configuration here
Install two Serverless plugins: serverless-s3-sync for uploading Remix public assets and client build output to the asset bucket, and serverless-apigateway-service-proxy to enable API Gateway proxy configuration against S3.
Run serverless deploy after a successful Remix build with the defaults to upload the artifacts and create the necessary infrastructure to host the site.
Remix Serverless is an adapter that allows developers to use the Serverless framework with Remix, offering an alternative to the Architect framework adapter. It provides the option to use REST API Gateway and supports the deployment of the web client using the Serverless framework. Future improvements aim to enhance the packaging of the Remix server lambda artifact and provide more efficient deployment by excluding unnecessary node modules.